How to Force WordPress to Empty the Trash

How to Force WordPress to Empty the Trash

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’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’t become available until you empty the trash.

Also, previously we posted a tutorial about how to set your site to automatically empty the trash every few days.

If you want to force it to empty immediately, go to: Dashboard >> Posts and you’ll see “Trash” at the top:

Emptying the trash and bulk deleting couldn't be easier with WordPress


Then, select everything in the trash and click delete permanently.

Got any other easy WordPress hacks? Let us know in the comments!
Free Video Why 100 is NOT a Perfect Google PageSpeed Score (*5 Min Watch) Learn how to use Google PageSpeed Insights to set realistic goals, improve site speed, and why aiming for a perfect 100 is the WRONG goal.
Sarah Gooding
Sarah Gooding Sarah enjoys staying on top of the latest WordPress and BuddyPress news. Get in touch with Sarah on Twitter @pollyplummer.