{"id":92138,"date":"2012-08-06T12:00:42","date_gmt":"2012-08-06T16:00:42","guid":{"rendered":"http:\/\/wpmu.org\/?p=92138"},"modified":"2022-04-07T01:46:52","modified_gmt":"2022-04-07T01:46:52","slug":"wordpress-delete-all-posts","status":"publish","type":"post","link":"https:\/\/wpmudev.com\/blog\/wordpress-delete-all-posts\/","title":{"rendered":"How to Delete All Your WordPress Posts"},"content":{"rendered":"<p>If you have the need to delete all your posts from your WordPress site, then there are basically three ways you could go about it. You could\u00a0 manually delete your posts. You could use a plugin. Or you could go into your database and delete your posts from there.<\/p>\n<p>We&#8217;ll go over each method below:<\/p>\n<ul>\n<li><a href=\"#manual-deletion\">Manual Deletion<\/a><\/li>\n<li><a href=\"#plugin-deletion\">Delete with a Plugin<\/a><\/li>\n<li><a href=\"#db-deletion\">Go into the Database<\/a><\/li>\n<li><a href=\"#reset-db\">Reset The Database Completely<\/a><\/li>\n<\/ul>\n<p>No matter which method you choose, of course you should first back up your database in case something goes wrong and you end up deleting things you don\u2019t want to delete.<\/p>\n<h2 id=\"manual-deletion\"><strong>Manual Deletion<\/strong><\/h2>\n<p>If you\u2019d like to manually delete a LOT of posts, there is a little trick you can use to help cut down on the time it will take to run through the deletion process.<\/p>\n<p>1. First go to your Post section in the Admin area of your backend.<\/p>\n<figure id=\"attachment_208106\" class=\"wp-caption aligncenter\" data-caption=\"true\"><a rel=\"lightbox[92138]\" class=\"blog-thumbnail\" href=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2012\/08\/delete-posts-01.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-208106\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2012\/08\/delete-posts-01.png\" alt=\"Posts Menu\" width=\"600\" height=\"358\" \/><\/a><figcaption class=\"wp-caption-text\">Select Posts &gt; All Posts to view your Table of Posts.<\/figcaption><\/figure>\n<p>2. Once there, go to the \u201cScreen Options\u201d panel in your Admin section. (You should see an option for it in the upper right-hand corner of your screen.)<\/p>\n<figure id=\"attachment_208107\" class=\"wp-caption aligncenter\" data-caption=\"true\"><a rel=\"lightbox[92138]\" class=\"blog-thumbnail\" href=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2012\/08\/delete-posts-02.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-208107\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2012\/08\/delete-posts-02.png\" alt=\"Screen Options\" width=\"600\" height=\"410\" \/><\/a><figcaption class=\"wp-caption-text\">Select the Screen Options tab.<\/figcaption><\/figure>\n<p>3. In the Screen Options panel, you can change the number of posts you can view on one page. Change that number from the default 20 to something higher. (Note: if you have LOTS of posts and you change this number to something VERY high, your browser might lock up on you. You can test it to see how high you can go without problems.)<\/p>\n<figure id=\"attachment_208108\" class=\"wp-caption aligncenter\" data-caption=\"true\"><a rel=\"lightbox[92138]\" class=\"blog-thumbnail\" href=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2012\/08\/delete-posts-03.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-208108\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2012\/08\/delete-posts-03.png\" alt=\"Screen Options - Pagination section\" width=\"600\" height=\"522\" \/><\/a><figcaption class=\"wp-caption-text\">Increase the number of items to display per page in the Screen Options &gt; Pagination section.<\/figcaption><\/figure>\n<p>4. Select all your posts; then use the \u201cBulk Actions\u201d pull-down menu, and select \u201cMove to Trash.\u201d After that, click the \u201cApply\u201d button.<\/p>\n<figure id=\"attachment_208109\" class=\"wp-caption aligncenter\" data-caption=\"true\"><a rel=\"lightbox[92138]\" class=\"blog-thumbnail\" href=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2012\/08\/delete-posts-04.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-208109\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2012\/08\/delete-posts-04.png\" alt=\"Posts table - Move to Trash\" width=\"600\" height=\"400\" \/><\/a><figcaption class=\"wp-caption-text\">Select all posts and choose the &#8216;Move to Trash&#8217; option, then click Apply.<\/figcaption><\/figure>\n<p>5. You can then go to your \u201cTrash\u201d section and click \u201cEmpty Trash\u201d if you like.<\/p>\n<figure id=\"attachment_208110\" class=\"wp-caption aligncenter\" data-caption=\"true\"><a rel=\"lightbox[92138]\" class=\"blog-thumbnail\" href=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2012\/08\/delete-posts-05.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-208110\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2012\/08\/delete-posts-05.png\" alt=\"Posts screen - Empty Trash\" width=\"600\" height=\"308\" \/><\/a><figcaption class=\"wp-caption-text\">Click &#8216;Empty Trash&#8217; to permanently delete all trashed posts.<\/figcaption><\/figure>\n<p><strong>*Repeat the above process until all your posts have been moved to trash and deleted.<\/strong><\/p>\n<h2 id=\"plugin-deletion\"><strong>Delete with a Plugin<\/strong><\/h2>\n<p>If you\u2019d like to use a plugin to do this work, then the <a href=\"http:\/\/wordpress.org\/extend\/plugins\/bulk-delete\/\" target=\"_blank\">Bulk Delete plugin<\/a> should do the trick for you.<\/p>\n<p>The Bulk Delete plugin lets you choose to delete posts based on a number of different options. For example, you can delete posts based on \u2026<\/p>\n<ul>\n<li>Status (Draft, Revision, Pending, Scheduled, Private)<\/li>\n<li>Category<\/li>\n<li>Age of Post<\/li>\n<li>Tags<\/li>\n<li>And more<\/li>\n<\/ul>\n<p>Here\u2019s a partial look at the settings page.<\/p>\n<figure id=\"attachment_208111\" class=\"wp-caption aligncenter\" data-caption=\"true\"><a rel=\"lightbox[92138]\" class=\"blog-thumbnail\" href=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2012\/08\/delete-posts-06.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-208111\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2012\/08\/delete-posts-06.png\" alt=\"Bulk Delete Plugin - Partial Settings screen \" width=\"600\" height=\"577\" \/><\/a><figcaption class=\"wp-caption-text\">Bulk Delete Plugin<\/figcaption><\/figure>\n<h2 id=\"db-deletion\"><strong>Go into the Database<\/strong><\/h2>\n<p>If you have thousands of posts delete, and you feel the options above may be too slow or too clunky, then your best bet may be to dive into your database. And so for this I\u2019ll refer you to <a href=\"http:\/\/www.tripwiremagazine.com\/2010\/06\/how-to-effectively-bulk-delete-many-posts-in-wordpress.html\" target=\"_blank\">a post at TripWireMagazine<\/a> where they run through at least one way of doing that.<\/p>\n<h2 id=\"reset-db\"><strong>Reset Your Database Completely<\/strong><\/h2>\n<p>If you\u2019re looking to get your database to the way it was when you first installed WordPress (in other words, deleting pretty much everything), then check out our recommendation on <a href=\"https:\/\/wpmudev.com\/blog\/daily-tip-reset-your-wordpress-database-with-one-click\/\" target=\"_blank\">resetting your database<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Need to delete a massive amount of posts? One of these options should work for you.<\/p>\n","protected":false},"author":84404,"featured_media":207608,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"blog_reading_time":"","wds_primary_category":0,"wds_primary_tutorials_categories":0,"footnotes":""},"categories":[4],"tags":[],"tutorials_categories":[],"class_list":["post-92138","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-plugins"],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/92138","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/users\/84404"}],"replies":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/comments?post=92138"}],"version-history":[{"count":4,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/92138\/revisions"}],"predecessor-version":[{"id":207609,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/92138\/revisions\/207609"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/media\/207608"}],"wp:attachment":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/media?parent=92138"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/categories?post=92138"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/tags?post=92138"},{"taxonomy":"tutorials_categories","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/tutorials_categories?post=92138"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}