Follow these steps
- Select the intended items. Open iCloud Photos on a trusted device and choose a small group to verify first.
- Download a copy. Use Download and choose the available format that fits your task. Do not delete the online photos during this process.
- Check files outside Photos. Open the downloaded files and check the count, format and dates that matter to you.
Check your result
You have working copies saved in a destination you control. Keep them backed up before clearing anything.