Back to Performance

Database Sweep

What the sweep removes, the preview you see first, and why it is not a safe optimization.

Updated

Database Sweep sits outside the safe optimizations on purpose: it removes data and cannot be undone.

  1. Open a site's Optimization tab and scroll to Database cleanup.
  2. Choose Preview sweep. Nothing is removed at this step. The dialog shows what the site reports right now: the number of expired transients, spam comments and trashed posts.
  3. Decide what to delete. Expired transients are always cleared; they are cache entries WordPress recreates when needed. Delete spam comments and Delete trashed posts and pages are off until you tick them.
  4. Confirm to run the sweep.

What to know before you confirm

  • Deleting spam comments and trashed posts is permanent
  • Up to 200 of each are deleted per run. If more remain, run the sweep again.
  • Deletion goes through WordPress, so related data and files are cleaned up as well

Requirements

The sweep needs Wopovo plugin 1.10.0 or later on the site. On older versions the dashboard refuses to run it and asks you to update the plugin first, because older versions could not preview.

Not available to Claude

Database clean-up is never available through MCP.

Something wrong or missing on this page?

Tell us what did not match what you saw, and we will correct the article.

More in Performance