Title: Comments Deletion
Author: Arrow Design
Published: <strong>22 Jona 2021</strong>
Last modified: 17 Septambra 2026

---

Search plugins

![](https://ps.w.org/comments-deletion/assets/banner-772x250.png?rev=3700662)

![](https://ps.w.org/comments-deletion/assets/icon-256x256.png?rev=2594165)

# Comments Deletion

 By [Arrow Design](https://profiles.wordpress.org/irish_cathal/)

[Download](https://downloads.wordpress.org/plugin/comments-deletion.zip)

 * [Details](https://mg.wordpress.org/plugins/comments-deletion/#description)
 * [Reviews](https://mg.wordpress.org/plugins/comments-deletion/#reviews)
 *  [Installation](https://mg.wordpress.org/plugins/comments-deletion/#installation)
 * [Development](https://mg.wordpress.org/plugins/comments-deletion/#developers)

 [Support](https://wordpress.org/support/plugin/comments-deletion/)

## Description

Comments Deletion provides a safer and more flexible way to clean comments from 
WordPress.

Version 3.1 adds a completely rebuilt cleanup engine and administration screen. 
Instead of directly truncating comment database tables, comments are now permanently
deleted through WordPress APIs so associated comment metadata and post comment counts
are handled correctly.

Features include:

 * Dashboard counts for approved, pending, spam, trash and product reviews.
 * WooCommerce/product review protection enabled by default.
 * Preview the number of matching comments before deletion.
 * Preview sample comments before deletion.
 * Filter by status: approved, pending, spam, trash, spam + trash or all.
 * Filter by comment type: standard comments, pingbacks, trackbacks or product reviews.
 * Delete comments older than a chosen number of days.
 * Date-from and date-to filters.
 * Filter by post ID or public post type.
 * Filter by author email or IP address.
 * Keyword filtering across comment content, author and email.
 * Quick-clean presets for common cleanup jobs.
 * Batched deletion with an on-screen progress indicator for larger sites.
 * Strong confirmation when deleting every comment including product reviews.
 * Automatic scheduled cleanup for old spam, trash and pending comments.
 * Cleanup history without storing deleted comment content.
 * Configurable permissions, batch size and review protection.
 * WP-CLI commands for large sites.
 * Multisite-aware activation and network WP-CLI cleanup.

Important: comment deletion is permanent. Always review the preview before confirming
a cleanup and keep a current site/database backup.

## Screenshots

[⌊Cleanup dashboard showing comment totals, WooCommerce/product review protection,
quick-clean presets and advanced cleanup filters.⌉⌊Cleanup dashboard showing comment
totals, WooCommerce/product review protection, quick-clean presets and advanced 
cleanup filters.⌉[

Cleanup dashboard showing comment totals, WooCommerce/product review protection,
quick-clean presets and advanced cleanup filters.

[⌊Automatic Cleanup settings for scheduled removal of old spam, trash and pending
comments, with product review protection.⌉⌊Automatic Cleanup settings for scheduled
removal of old spam, trash and pending comments, with product review protection.⌉[

Automatic Cleanup settings for scheduled removal of old spam, trash and pending 
comments, with product review protection.

[⌊Cleanup History showing previous cleanup actions, counts and filters without storing
deleted comment content.⌉⌊Cleanup History showing previous cleanup actions, counts
and filters without storing deleted comment content.⌉[

Cleanup History showing previous cleanup actions, counts and filters without storing
deleted comment content.

[⌊Plugin Settings for cleanup permissions, deletion batch size, default review protection
and history retention, plus WP-CLI examples.⌉⌊Plugin Settings for cleanup permissions,
deletion batch size, default review protection and history retention, plus WP-CLI
examples.⌉[

Plugin Settings for cleanup permissions, deletion batch size, default review protection
and history retention, plus WP-CLI examples.

## Installation

 1. Upload the plugin files to the `/wp-content/plugins/comments-deletion` directory,
    or install the plugin through the WordPress Plugins screen.
 2. Activate the plugin through the Plugins screen in WordPress.
 3. Go to Settings > Comments Deletion.
 4. Choose a quick-clean preset or configure filters.
 5. Click Preview Cleanup before permanently deleting matching comments.

## FAQ

### Are WooCommerce product reviews protected?

Yes. Product reviews are excluded by default from manual and scheduled cleanup. 
You can deliberately turn that protection off when you specifically want to remove
matching reviews.

### Does the plugin remove comment metadata?

Yes. Version 3.1 uses WordPress comment deletion APIs rather than deleting only 
rows from the comments table.

### Can I automatically clean old spam or trash?

Yes. The Automatic Cleanup tab can delete spam, trash and/or pending comments older
than a chosen number of days on a daily or weekly schedule.

### Does it work on large sites?

Manual deletion is performed in configurable batches and displays progress. WP-CLI
commands are also available for large or multisite installations.

### What WP-CLI commands are available?

Examples:

    ```
    wp comments-deletion count --status=spam

    wp comments-deletion delete --status=spam --older-than=30 --yes

    wp comments-deletion delete --status=trash --network --yes
    ```

By default WP-CLI deletion protects product reviews. Pass `--include-reviews` only
when you intentionally want matching product reviews included.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Comments Deletion” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ Arrow Design ](https://profiles.wordpress.org/irish_cathal/)

[Translate “Comments Deletion” into your language.](https://translate.wordpress.org/projects/wp-plugins/comments-deletion)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/comments-deletion/),
check out the [SVN repository](https://plugins.svn.wordpress.org/comments-deletion/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/comments-deletion/)
by [RSS](https://plugins.trac.wordpress.org/log/comments-deletion/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 3.1.1

 * Reworked comment retrieval to use WP_Comment_Query instead of direct database
   reads.
 * Resolved WordPress.org Plugin Check prepared-SQL and direct-query findings.
 * Added direct nonce verification before request processing and sanitized nested
   request input.
 * Added translator comments for placeholder strings.
 * Moved plugin hooks into a prefixed class to satisfy global naming conventions.
 * Wrapped uninstall cleanup in a prefixed function to avoid unprefixed globals.
 * Updated Tested up to metadata to WordPress 7.1.

#### 3.1.0

 * Rebuilt the deletion engine to use WordPress comment deletion APIs.
 * Added nonce and capability checks for cleanup actions.
 * Added batched deletion with progress reporting.
 * Added preview counts and sample comment previews.
 * Added approved, pending, spam, trash and spam + trash status filters.
 * Added standard comment, pingback, trackback and product review filters.
 * Added filters for age, date range, post ID, post type, author email, author IP
   and keyword.
 * Added product/WooCommerce review detection and default protection.
 * Added quick-clean presets.
 * Added scheduled automatic cleanup for old spam, trash and pending comments.
 * Added cleanup history.
 * Added configurable permissions, batch size and history retention.
 * Added WP-CLI support including multisite network operations.
 * Added multisite-aware activation/deactivation handling.
 * Modernised the Comments Deletion administration screen.
 * Corrected version metadata and minimum PHP/WordPress requirements.

#### 3.0

 * Tested up to WordPress 6.9.
 * Changes to description and tags.

#### 2.9

 * Tested up to WordPress 6.9.

#### 2.8

 * Upgrade of admin panel.

#### 2.7

 * Tested up to WordPress 6.8.

#### 2.6

 * Tested up to WordPress 6.7.1.
 * Upgrade of admin panel.

#### 2.5

 * Tested up to WordPress 6.5.2.
 * Upgrade of admin panel.

#### 2.4

 * Tested up to WordPress 6.2.

#### 2.3

 * Tested up to WordPress 6.1.1.

#### 2.2

 * Testing up to WordPress 5.8.
 * Upgrade of admin panel.
 * Change to WordPress repository icon.

#### 1.0

 * Initial release.

## Meta

 *  Version **3.1.1**
 *  Last updated **3 andro ago**
 *  Active installations **80+**
 *  WordPress version ** 5.8 or higher **
 *  Tested up to **7.1.1**
 *  PHP version ** 7.4 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/comments-deletion/)
 * Tags
 * [bulk delete comments](https://mg.wordpress.org/plugins/tags/bulk-delete-comments/)
   [comment cleanup](https://mg.wordpress.org/plugins/tags/comment-cleanup/)[delete comments](https://mg.wordpress.org/plugins/tags/delete-comments/)
   [spam comments](https://mg.wordpress.org/plugins/tags/spam-comments/)[wordpress comments](https://mg.wordpress.org/plugins/tags/wordpress-comments/)
 *  [Advanced View](https://mg.wordpress.org/plugins/comments-deletion/advanced/)

## Ratings

Mbola tsy misy domberina voaray hatreto.

[Your review](https://wordpress.org/support/plugin/comments-deletion/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/comments-deletion/reviews/)

## Contributors

 *   [ Arrow Design ](https://profiles.wordpress.org/irish_cathal/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/comments-deletion/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://arrowdesign.ie)