Make sure you have first backed up the photos you are keeping to Google Drive before deleting them: https://napls.freshservice.com/support/solutions/articles/14000031691-backing-up-ipad-photos-to-google-drive