Connect the iPhone with a cable, unlock it and tap Trust.
Open the Photos app on Windows > Import > from a connected device, and import everything.
Open the imported folder and check a few photos and videos actually open on the PC.
Only then delete them from the iPhone, and empty Recently Deleted.
If you use iCloud Photos, turn it off first or deleting on the phone deletes from iCloud too. Tip: Settings > Photos > Transfer to Mac or PC > Automatic converts HEIC photos to JPG while copying.