Deleting posts in bulk (4 posts)

  1. danidin
    Posted 10 years ago #

    How can I delete posts in bulk if my DB is getting full?
    I assume I can't just delete the posts from wp_posts... or can I?

  2. MichaelH
    Posted 10 years ago #

    If you delete records in wp_posts be sure to delete the related records in wp_post2cat and wp_postmeta. Please note, each post could have multiple records in each of those tables. If you do attempt this, backup your database before deleting anything!!

    Assuming that disk space in not the issue, your database should be able to hold a very large number of posts.

  3. danidin
    Posted 10 years ago #


    DB space is THE issue. So there's no automated way to delete 'X oldest posts' or 'posts old than X month'...


  4. Ajay
    Posted 10 years ago #

    Don't mind me asking, but how many posts do you have that take up so much db space?

    And you are hosted at a place where they restrict db space?

Topic Closed

This topic has been closed to new replies.

About this Topic