At the time of development i upload a lot of images on the site. Over the time, i may need to tweak it quality or resolution, so mostly i upload the images with same name. So by the end of the development, i have a lot of similar images, only 1 of them being in use somewhere. How can i identify the unused ones and delete them from my server?

1 Answer 1


You can go into your media library to view all your attachments. There is an unattached option at the top that shows you media that isn't connected to any pages or posts. You can then select them for deletion.

  • Your answer is correct for posts and pages but sadly there are other instances where media in use may show as unattached. Some plugins and themes for example may be using images shown as unattached in the media library.
    – epilektric
    Commented Aug 16, 2013 at 6:11
  • And i need to delete unused images on a live website. So cannot take any chances here.
    – ishan
    Commented Aug 16, 2013 at 6:30
  • Always run a backup! Commented Aug 16, 2013 at 7:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.