WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] How to delete drafts?

[Resolved] How to delete drafts?

  • When writing, I produce a large number of drafts, as I save frequently and preview changes a lot. How can I delete the very large number of drafts created this way?

    Where do the post files reside anyway?

    Thx.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Michael

    @alchymyth

    Forum Moderator

    in admin, under ‘edit posts’ you see the list of posts, with ‘draft’ beside them, and a tick box to the left. tick the ones you want to delete, and then goto ‘bulk action’, choose ‘delete’, click ‘apply’ and then ‘ok’.

    That’s not what I’m asking. What I want is to delete the multiple saved drafts, created while writing. In case an error occurs we can go back and restore. After the post gets published, older files created as drafts have no use anymore, much less 30 or 40 of them.

    How do I delete them?

    What I want is to delete the multiple saved drafts…

    Do you mean “post revisions”?

    If so, they are stored in the wp_posts table in the database. They will all be identified with “revision” in the “post_type” field. You can run a query in phpMyAdmin to delete all the revisions if you want, but there is really no need to do that unless we are talking hundreds of thousands and you think this may improve your db performance.

    If you do attempt to delete them, be sure to take a good backup first…just in case…

    Thx.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] How to delete drafts?’ is closed to new replies.