Hi Nesa2009,
Are you trying to free up space on your iPhone? If so, we recommend that you try the steps here: Manage your photo and video storage - Apple Support
To perform the recommended troubleshooting steps via the link above, complete the steps in the section titled "If you need more storage."
* When you sign up for iCloud, you automatically get 5GB of free storage. If you need more iCloud storage, you can upgrade to iCloud+.
* If you need more storage on your device, you can transfer the photos and videos that you don't want to store in iCloud to your computer.
* If you need more help with your storage plan — for example, if you bought more storage but you don't see it in your account — contact Apple Support.
* With Recommended for You in iOS 17 or iPadOS 17 or later, you can check if there are photos, large files, or backups that you might not need anymore and can delete.
We recommend the steps above because they will show you what to do if you need more storage on your device.
Please let us know the outcome after giving the above steps a try.
Thanks for using the Apple Support Communities.
Cheers!