Title: Delete and replace in database
Last modified: April 27, 2017

---

# Delete and replace in database

 *  Resolved [Zade](https://wordpress.org/support/users/nothin7/)
 * (@nothin7)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/delete-and-replace-in-database/)
 * Hello and thank you for this amazing plugin that should be built into the WordPress
   core. Often my clients have different versions of a duplicate image attached 
   to different posts. It would be EXTREMELY useful if there were a new setting 
   added to the Bulk Actions menu that deleted the newer image(s) and replaced all
   instances of the newer image URL(s) with the older image URL throughout the database.
   Call it “Delete Preserving All”. Doing this manually for dozens of images across
   dozens of websites is taking forever and a half. Any chance this might be added?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [drywallbmb](https://wordpress.org/support/users/drywallbmb/)
 * (@drywallbmb)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/delete-and-replace-in-database/#post-9086584)
 * Thanks for your message.
 * We’re in the process of working on a Pro version that will be more sophisticated
   in handling image references, going beyond just preserving references for Featured
   Images.
 * Finding image references in the actual body of posts is actually quite challenging,
   so while that’s on our roadmap it will be some time before we’re able to release
   something we think is reliable even for Pro.
 * But we’re actively working on at least making it smarter for some other postmeta
   keys, and hope to have at least a rudimentary in-body solution in the not-too-
   wildly-distant future.
 *  Plugin Author [cornershop](https://wordpress.org/support/users/cornershop/)
 * (@cornershop)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/delete-and-replace-in-database/#post-9245874)
 * Hi there,
 * This feature is available in our brand-new Media Deduper Pro plugin! For more
   info and to purchase it, check our website at [https://cornershopcreative.com/product/media-deduper/](https://cornershopcreative.com/product/media-deduper/).
 * In Pro, the Smart Delete feature will allow you to delete duplicate images and
   have those images replaced in:
    - Links to the image file
    - img tags (including resized versions) in WordPress posts, pages, and other
      content types
    - Gallery shortcodes with hand-picked images like [gallery ids=”123,456,789”]
    - WooCommerce product gallery images
    - Yoast’s Facebook and Twitter images
    - Featured images
 * Let us know if you have any questions!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Delete and replace in database’ is closed to new replies.

 * ![](https://ps.w.org/media-deduper/assets/icon-256x256.png?rev=1682001)
 * [Media Deduper](https://wordpress.org/plugins/media-deduper/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/media-deduper/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/media-deduper/)
 * [Active Topics](https://wordpress.org/support/plugin/media-deduper/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/media-deduper/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/media-deduper/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [cornershop](https://wordpress.org/support/users/cornershop/)
 * Last activity: [8 years, 11 months ago](https://wordpress.org/support/topic/delete-and-replace-in-database/#post-9245874)
 * Status: resolved