The trash button works on a photo you took this morning, but it’s grayed out on a picture from an old vacation. That second photo may have been synced from a computer. If so, change what syncs on the computer to remove the copy from your iPhone. Apple’s guide to deleting photos

Check whether the photos came from a computer

In Photos, open a recent iPhone shot on its own, then open one of the pictures you can’t delete. If the trash button works on the recent shot, think back to how the older one got there. Maybe you loaded a whole family album onto your phone from a laptop years ago.

If you still have that computer, look for the album or folder in your iPhone’s Photos settings in Finder on your Mac or Apple Devices on Windows. Before you change any settings, open a few of the pictures on the computer and confirm you have a copy of everything you want to keep. If the original computer is gone and you haven’t found another copy, hold off on making sync changes.

Remove only the albums you no longer want on your iPhone

On a Mac, use Finder

  1. Connect and unlock your iPhone. If you see a trust prompt, confirm it.
  2. Pick your iPhone in the Finder sidebar and open the Photos tab.
  3. Switch to Selected albums and leave a checkmark next to each album you still want on your phone.
  4. Click Apply. When syncing finishes, reopen Photos on your iPhone and check the result.

If you want to drop just three pictures from an album you otherwise love, make a separate album on your Mac with the shots you want on your phone. Sync that smaller album in place of the full one. Apple’s Finder sync guide

On Windows, use Apple Devices

Connect your iPhone, select it in Apple Devices, and open Photos. In the folder list, uncheck the folders you want off the phone, then sync. The folders you unchecked stay on your PC. Apple’s Windows sync guide

If you can’t find the album or folder in the Photos settings, make sure you’re using the computer the pictures came from before you apply changes. If the trash button works and you have a lot of other pictures to clear out, try selecting photos in batches.