How to Clean Your Child Site of Spam Comments

Clean Your Child Site of Spam Comments

If you have a child site which has post content and comments enabled, it is a fact of life that you will inevitably deal with spam comments.

Luckily, there are a number of ways to deal with spam. Some of the plugin options include Akismet and  Antispam Bee.

Antispam Bee

Antispam Bee will add a setting section under Settings > Antispam Bee

You can find more information about Antispam Bee on their docs. There is a bulk setting key for Antispam Bee, which also means the number of days until existing spam is deleted can be easily set, using the MainWP Bulk Setting Manager extension.

WP Optimize

You can bulk delete comments flagged as spam using a plugin like WP Optimize on the child site. Once the plugin has been installed, go to WP Optimize > Database

To run the optimization to delete spam comments and comments that have been trashed.

MainWP Extensions

MainWP also has the comments extension, where you can moderate comments on all connected child sites. You can easily mark comments as spam from the extensions settings.

The maintenance extension from MainWP is another easy way to bulk delete spam comments and trashed comments on child sites.

Advanced Database Cleaner

Another plugin option for bulk deleting spam and trashed comments is Advanced Database Cleaner.

Once the plugin has been installed and activated on the child site, go to the WP DB Cleaner admin menu;



Select spam comments and trash comments, then the clean button, and click apply.

Those same settings can be applied using this bulk settings key to clean spam and trash comments, using the Advanced Database Cleaner plugin.

WP-CLI command

You can also delete all comments marked as spam using a WP-CLI command;

wp comment delete $(wp comment list --status=spam --format=ids)

A mix of these options will help in keeping your child site clean of spam comments.

Looking for something?

Privacy laws apply to businesses that collect personal information. Since no personal information is collected by the MainWP plugins, no privacy laws apply to the MainWP plugins. This includes GDPR, UK DPA 2018, PIPEDA, Australia Privacy Act 1988, LGPD, PIPL, and other privacy laws.
Donata Stroink-Skillrud
Donata Stroink-Skillrud
President of Agency Attorneys