{"id":44411,"date":"2011-01-06T18:20:35","date_gmt":"2011-01-06T23:20:35","guid":{"rendered":"http:\/\/wpmu.org\/?p=44411"},"modified":"2013-06-13T21:10:04","modified_gmt":"2013-06-14T01:10:04","slug":"daily-tip-how-to-force-wordpress-to-empty-the-trash","status":"publish","type":"post","link":"https:\/\/wpmudev.com\/blog\/daily-tip-how-to-force-wordpress-to-empty-the-trash\/","title":{"rendered":"How to Force WordPress to Empty the Trash"},"content":{"rendered":"<p>I think we can all agree, when working with WordPress there may be times when you want to force it to empty the trash.<\/p>\n<p>This is handy if you&#8217;ve deleted a post or page in the past but want to use the same slug for a new version of that page. That slug won&#8217;t become available until you empty the trash.<\/p>\n<p>Also, previously we posted a tutorial about <a href=\"https:\/\/wpmudev.com\/blog\/daily-tip-set-wordpress-to-automatically-empty-the-trash\/\" target=\"_blank\" rel=\"noopener\">how to set your site to automatically empty the trash<\/a> every few days.<\/p>\n<p>If you want to force it to empty immediately, go to: Dashboard &gt;&gt; Posts and you&#8217;ll see &#8220;Trash&#8221; at the top:<\/p>\n<div class=\"image-grid cgrid-row\">\n<div class=\"cgrid-col cgrid-col-span-full\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-181364\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2011\/01\/Empty-trash-wp.png\" alt=\"Emptying the trash and bulk deleting couldn't be easier with WordPress\" width=\"600\" height=\"132\" \/><\/div>\n<\/div>\n<p>&nbsp;<\/p>\n<p>Then, select everything in the trash and click <b>delete permanently<\/b>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I think we can all agree, when working with WordPress there may be times when you want to force it to empty the trash. This is handy if you&#8217;ve deleted a post or page in the past but want to use the same slug for a new version of that page. That slug won&#8217;t become [&hellip;]<\/p>\n","protected":false},"author":4099,"featured_media":181368,"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":[263],"tags":[],"tutorials_categories":[],"class_list":["post-44411","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials"],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/44411","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\/4099"}],"replies":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/comments?post=44411"}],"version-history":[{"count":1,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/44411\/revisions"}],"predecessor-version":[{"id":181381,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/44411\/revisions\/181381"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/media\/181368"}],"wp:attachment":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/media?parent=44411"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/categories?post=44411"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/tags?post=44411"},{"taxonomy":"tutorials_categories","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/tutorials_categories?post=44411"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}