WordPress

Clean Spam Comments & Optimise WP Database

Clear out spam comments in bulk and tidy up the database bloat they leave behind.

The Problem

Thousands of spam comments (even held in moderation) bloat your database and slow down admin screens, and manually deleting them one by one isn't a realistic option.

About this problem

Spam comments are stored as rows in the comments table, with matching metadata, even when they are never shown. Sites without effective filtering can collect tens of thousands, which slows the comments screen, increases the database size and backup time, and makes real comments hard to find. Deleting them from the dashboard works only a page at a time.

People usually look for this when the admin becomes slow, the pending comments counter shows a huge number, or backups have unexpectedly grown. Many also want the problem to stop recurring.

What's Included

What's NOT Included

How It Works

  1. I take a database backup and count comments by status to see how many are spam, pending, trashed and approved.
  2. I identify clearly spam content by status and patterns such as links, repeated text and known spam sources.
  3. I remove those in bulk using direct database queries or WP-CLI, together with their orphaned comment metadata.
  4. I leave ambiguous comments in the moderation queue for you to review.
  5. I review the spam filtering setup, for example Akismet or similar, and discussion settings such as moderation rules and link limits.
  6. I optimise the comment-related tables and confirm approved comments were not affected.

In practice: you buy the service, send over whatever access or details the job needs, I investigate and do the work, and you confirm it's resolved before we call it done.

Frequently Asked Questions

How do I delete thousands of spam comments in WordPress?
Bulk removal using database queries or WP-CLI is far quicker than the dashboard. I back up first, and remove only clear spam.
Will genuine comments be deleted?
No. Approved comments are left alone, and anything ambiguous stays for you to review.
How do I stop the spam coming back?
I review and tighten the filtering, for example Akismet and discussion settings. No filter is perfect, but it reduces the volume substantially.
Do you replace my comment system?
No, setting up a replacement comment system is excluded.
Is general database optimisation included?
Only the tables related to comments. Wider database cleanup is a separate service.
Will this speed up my site?
It usually makes the admin faster and shrinks the database, but a visible effect on the front end depends on the site.
Please note: the price shown applies to a standard case matching the description above. Every situation is different, and if your request falls outside the normal scope of this service, I will explain this before doing any additional chargeable work. I will never silently turn a small job into an expensive project.
Running into an issue with a service you've already bought, or unsure which one fits your problem? Message me directly on WhatsApp — no ticket system, no bot.