Database Sweep sits outside the safe optimizations on purpose: it removes data and cannot be undone.
- Open a site's Optimization tab and scroll to Database cleanup.
- 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.
- 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.
- 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.