Title: Cleaning wp_postmeta database
Last modified: December 20, 2018

---

# Cleaning wp_postmeta database

 *  Resolved [wpturk](https://wordpress.org/support/users/wpturk/)
 * (@wpturk)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/cleaning-wp_postmeta-database/)
 * Hi,
 * What is the best way to clean the wp_postmeta database from “tiny_compress_images”
   etc. entries. It’s ok, if the images will be shown as not optimised in the end.
 * Which rows can be deleted?
    -  This topic was modified 7 years, 5 months ago by [wpturk](https://wordpress.org/support/users/wpturk/).

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

 *  Plugin Author [TinyPNG](https://wordpress.org/support/users/tinypng/)
 * (@tinypng)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/cleaning-wp_postmeta-database/#post-11013552)
 * Hi, each image when optimized will get some additional info in the wp_postmeta
   table, where the post_id refers to the image. To get a list of all records that
   contain optimization information you could probably enter a SQL querie like this:
 * `SELECT * FROM wp_postmeta WHERE meta_key = "tiny_compress_images";`
 *  Thread Starter [wpturk](https://wordpress.org/support/users/wpturk/)
 * (@wpturk)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/cleaning-wp_postmeta-database/#post-11014067)
 * Is it safe to:
 * `DELETE FROM wp_postmeta WHERE meta_key ="tiny_compress_images";`
 * Are there any other entries from your plugin in postmeta table?
 *  Thread Starter [wpturk](https://wordpress.org/support/users/wpturk/)
 * (@wpturk)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/cleaning-wp_postmeta-database/#post-11407112)
 * Any news on this?
 * I want to keep on using your plugin but is it ok to delete these entries below?(
   I don’t need the compress info)
 * DELETE FROM wp_postmeta WHERE meta_key =”tiny_compress_images”;

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

The topic ‘Cleaning wp_postmeta database’ is closed to new replies.

 * ![](https://ps.w.org/tiny-compress-images/assets/icon-256x256.png?rev=3448487)
 * [TinyPNG - JPEG, PNG & WebP image compression](https://wordpress.org/plugins/tiny-compress-images/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tiny-compress-images/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tiny-compress-images/)
 * [Active Topics](https://wordpress.org/support/plugin/tiny-compress-images/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tiny-compress-images/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tiny-compress-images/reviews/)

## Tags

 * [cleaning](https://wordpress.org/support/topic-tag/cleaning/)
 * [wp_postmeta](https://wordpress.org/support/topic-tag/wp_postmeta/)

 * 3 replies
 * 2 participants
 * Last reply from: [wpturk](https://wordpress.org/support/users/wpturk/)
 * Last activity: [7 years, 2 months ago](https://wordpress.org/support/topic/cleaning-wp_postmeta-database/#post-11407112)
 * Status: resolved