WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How to delete drafts? (5 posts)

  1. PL Monteiro
    Member
    Posted 5 years ago #

    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.

  2. alchymyth
    The Sweeper & Moderator
    Posted 5 years ago #

    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'.

  3. PL Monteiro
    Member
    Posted 5 years ago #

    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?

  4. figaro
    Member
    Posted 5 years ago #

    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...

  5. PL Monteiro
    Member
    Posted 5 years ago #

    Thx.

Topic Closed

This topic has been closed to new replies.

About this Topic