Skip to content
Back to skills

Db Cleanup

ASecurity

Remove old spam comments, trashed comments and post revisions from a WordPress database, with undo. Activate when the user asks to clean up or slim the database, clear spam, empty the comment trash or prune revisions.

  • 65 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 9, 2026
ai-agentsgodatabase

Security analysis

A100/100

Scanned November 9, 2026

npx -y skills add wppilot-labs/wordpress-mcp-elementor-wppilot --skill db-cleanup --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Db Cleanup?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Db Cleanup
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/wppilot-labs-db-cleanup/badge)](https://www.skillsdirectory.com/skills/wppilot-labs-db-cleanup)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: db-cleanup
description: Remove old spam comments, trashed comments and post revisions from a WordPress database, with undo. Activate when the user asks to clean up or slim the database, clear spam, empty the comment trash or prune revisions.
---

# Database cleanup

1. `wppilot/db-cleanup-preview` counts what would go: spam comments, trashed comments and post
   revisions older than `older_than_days` (default 30). Tell the user the counts.
2. `wppilot/db-cleanup` removes them, oldest first, up to `limit` rows (at most 500) per call. It
   needs the user's confirmation. Name only the `targets` the user agreed to.
3. Each removed row is recorded with its meta. Undo from the change log puts it back with its
   original id; it refuses when that id is in use again or the post it belonged to is gone.
4. If `remaining` is above zero or `stopped_at_snapshot_budget` is true, there is more to clean:
   run it again after telling the user.

Revisions of published posts are history the user may want. Ask before removing them.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.