Hello 1645Parn,
Thank you for using Apple Support Communities.
We understand that you only have 2 photos remaining after deleting the rest to clear space on your iPhone. If you have deleted photos, but haven't deleted the photos from the Recently Deleted album, then you could very well be having space still occupied. You can take a look at the following support article to delete photos on your iPhone. Specifically this section:
If you want to permanently delete your photos or videos, you can remove them from the Recently Deleted album. When you delete a photo from this album, you can't get it back. Here's how to delete photos permanently:
- Open Photos and tap the Albums tab.
- Tap the Recently Deleted album, then tap Select.
- Tap the photos or videos that you want to delete or tap Delete All.
- Tap Delete again to confirm."
Delete photos on your iPhone, iPad, and iPod touch - Apple Support
Best regards.