Title: Reusing deleted post IDs
Last modified: August 19, 2016

---

# Reusing deleted post IDs

 *  [Richard Thripp](https://wordpress.org/support/users/richardxthripp/)
 * (@richardxthripp)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/reusing-deleted-post-ids/)
 * What’s the best way to reuse deleted post IDs on new posts? I would like to write
   or find a plugin that checks the ID field of the wp_posts table for holes, and
   then sets the ID for a new post/page to the lowest available ID before the post
   is initially saved, overriding the MySQL auto_increment value. Then, this ID 
   would be used for that post from now on.
 * I don’t want to change the IDs of old posts, and I’ve disabled autosave and revisions
   on my blog, so I don’t care about compatibility with those features.
 * If this is not possible to do with a plugin, please suggest how to hack the core.

The topic ‘Reusing deleted post IDs’ is closed to new replies.

## Tags

 * [database](https://wordpress.org/support/topic-tag/database/)
 * [delete](https://wordpress.org/support/topic-tag/delete/)
 * [development](https://wordpress.org/support/topic-tag/development/)
 * [hacking](https://wordpress.org/support/topic-tag/hacking/)
 * [id](https://wordpress.org/support/topic-tag/id/)
 * [MySQL](https://wordpress.org/support/topic-tag/mysql/)
 * [posts](https://wordpress.org/support/topic-tag/posts/)
 * [recycle](https://wordpress.org/support/topic-tag/recycle/)

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 0 replies
 * 1 participant
 * Last reply from: [Richard Thripp](https://wordpress.org/support/users/richardxthripp/)
 * Last activity: [15 years, 7 months ago](https://wordpress.org/support/topic/reusing-deleted-post-ids/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
