Support » Fixing WordPress » Setting post ID back to Zero

  • In major testing of a new blog I have made over 100 fake posts. I have now deleted all posts and wish to set the post ID counter back to zero. How is that done?

    Eric

Viewing 1 replies (of 1 total)
  • In your database client software, assuming that “posts” is the name of your posts table:

    alter table posts auto_increment=1;

Viewing 1 replies (of 1 total)
  • The topic ‘Setting post ID back to Zero’ is closed to new replies.