How To Mass Delete Comments In WordPress: A Comprehensive Guide

Photo of author
Written By Charlie Giles

Devoted WordPress fan behind CodeCraftWP. Sharing years of web expertise to empower your WordPress journey!

Disclosure: This post may contain affiliate links, which means if you click on a link and make a purchase, I may earn a commission at no additional cost to you.

Want to clean up your WordPress comments section? This guide covers everything you need to know about mass deleting comments, including how to do it using the dashboard, plugins, or SQL queries. We also share and alternative solutions.

Reasons to Mass Delete Comments

As a website owner, you may have noticed that your comment section is becoming flooded with spam, negative, or duplicate comments. These types of comments can harm your website’s reputation and deter visitors from engaging with your content. In this section, we’ll explore the main reasons why you should mass delete comments.

Spam Comments

Spam comments are automated messages that promote a product, service, or website. They are typically irrelevant to the content of your website and can be very annoying for your visitors. Spam comments can also harm your website’s SEO by containing links to low-quality or malicious websites. If left unattended, your comment section can become a hub for comments, which can tarnish your website’s credibility and authority.

Negative Comments

Negative comments are feedback from visitors who express dissatisfaction, frustration, or anger towards your content or website. While negative comments can be constructive, they can also be hurtful and damaging to your website’s reputation. Negative comments can discourage visitors from engaging with your content and can lead to a decrease in traffic and revenue. It’s important to address negative comments in a professional and respectful manner, but mass deleting them can also be a viable option if they are not providing any value to your website.

Duplicate Comments

Duplicate comments are identical or nearly identical comments that are posted multiple times. They can be caused by technical issues or by visitors who are trying to increase their visibility on your website. Duplicate comments can be confusing for your visitors and can make it harder for them to find relevant information. Mass deleting duplicate comments can improve the user experience on your website and can make it easier for visitors to engage with your content.

In summary, mass deleting comments can be necessary when dealing with spam, negative, or duplicate comments. Doing so can improve your website’s reputation, increase user engagement, and enhance the user experience. In the next section, we’ll explore how to mass delete comments in WordPress.


  • Spam comments can harm your website’s reputation and deter visitors from engaging with your content.
  • Negative comments can discourage visitors from engaging with your content and can lead to a decrease in traffic and revenue.
  • Duplicate comments can be confusing for your visitors and can make it harder for them to find relevant information.

How to Mass Delete Comments in WordPress

Deleting comments individually can be a tedious and time-consuming task, especially if you receive a large number of comments on your WordPress site. Fortunately, there are several ways to mass delete comments in WordPress. In this article, we will explore three methods of mass deleting comments, including using the WordPress Dashboard, using a , and using a SQL query.

Using the WordPress Dashboard

The WordPress Dashboard is the easiest and most straightforward way to mass delete comments. Here is how you can do it:

  1. Log in to your WordPress Dashboard.
  2. Click on “Comments” from the left-hand menu.
  3. Select the comments you want to delete by clicking the checkbox next to each comment.
  4. Click on the “Bulk Actions” drop-down menu and select “Move to Trash.”
  5. Click on the “Apply” button.

All the selected comments will now be moved to the Trash folder. To permanently delete them, go to the Trash folder and click on the “Empty Trash” button.

Using a Plugin

If you want more advanced options for mass deleting comments, you can use a plugin. There are several WordPress plugins available that can help you with this task, but we recommend the WP Bulk Delete .

Here is how you can use the WP Bulk Delete to mass delete comments:

  1. Install and activate the WP Bulk Delete .
  2. Go to “Bulk WP” from the left-hand menu and select “Bulk Delete Comments.”
  3. Select the comments you want to delete by using the filters provided.
  4. Click on the “Delete” button.

All the selected comments will now be deleted. You can also use this plugin to schedule automatic deletion of comments based on certain criteria.

Using a SQL Query

Using a SQL query is the most advanced method of mass deleting comments, and it requires some technical knowledge. If you are not comfortable with coding, we recommend using one of the previous two methods.

Here is an example of a SQL query you can use to mass delete comments:

DELETE FROM wp_comments WHERE comment_approved = ‘0’;

This query will delete all the comments that have not been approved (i.e., comments). You can modify the query to target other types of comments.

Before using a SQL query, it is important to back up your database to avoid any accidental data loss.


Best Practices for Mass Deleting Comments

If you’re considering mass deleting comments on your WordPress website, it’s important to follow some to ensure that you don’t accidentally delete valuable content or cause any negative effects on your website’s performance. In this section, we’ll cover some key for mass deleting comments.

Backing Up Your Comments

Before you start deleting any comments, it’s important to back up your website’s comments in case you accidentally delete something you didn’t mean to. There are a few different ways to back up your comments:

  • Use a : There are several WordPress plugins available that can help you back up your comments. One popular option is the WP Database Backup plugin, which allows you to create a backup of your entire WordPress database, including your comments.
  • Export your comments: You can also export your comments directly from the WordPress dashboard. To do this, go to the “Comments” section of your dashboard, select the comments you want to back up, and click the “Export” button.
  • Use a third-party backup service: If you’re not comfortable backing up your comments yourself, you can also use a third-party backup service like VaultPress or BackupBuddy to handle the process for you.

No matter which method you choose, make sure that you store your backup in a safe and secure location so that you can easily restore your comments if anything goes wrong during the mass deletion process.

Reviewing Comments Before Deleting

Once you’ve backed up your comments, it’s time to review them before deleting them. This is an important step to ensure that you don’t accidentally delete any valuable or important comments. Here are a few things to look for when reviewing your comments:

  • Spam comments: Spam comments are usually easy to spot, as they often contain irrelevant or nonsensical content. Be sure to delete any comments before deleting any legitimate comments.
  • Duplicate comments: If you have multiple comments that say the same thing, you can safely delete all but one of them.
  • Negative comments: If you have negative comments on your website, it’s important to consider whether or not you want to delete them. While negative comments can be frustrating, they can also provide valuable feedback for your business or website. Consider responding to negative comments instead of deleting them.

When reviewing your comments, it’s also important to keep your website’s goals and audience in mind. If you have comments that are irrelevant or off-topic, you may want to consider deleting them to keep your website focused and on-topic.

Deleting Comments in Batches

Once you’ve reviewed your comments, you can start the mass deletion process. To do this, you have a few different options:

  • Using the WordPress dashboard: If you only have a few comments to delete, you can use the WordPress dashboard to delete them manually. Simply go to the “Comments” section of your dashboard, select the comments you want to delete, and click the “Bulk Actions” dropdown menu. From there, you can choose “Move to Trash” and click “Apply” to delete the selected comments.
  • Using a plugin: If you have a lot of comments to delete, you may want to use a plugin to help automate the process. One popular option is the Bulk Delete plugin, which allows you to delete comments in batches based on criteria like date, author, or content.
  • Using a SQL query: If you’re comfortable working with databases, you can also use a SQL query to delete comments in bulk. This method is more advanced and requires some technical knowledge, but can be useful if you need to delete a large number of comments at once.

No matter which method you choose, be sure to double-check your selections before deleting any comments to ensure that you’re not accidentally deleting anything important.


Alternatives to Mass Deleting Comments

When it comes to managing comments on your WordPress website, mass deleting them may not always be the best option. In fact, there are several alternatives available that can help you keep your comment section tidy without losing potentially valuable feedback from your readers. In this section, we’ll explore three alternatives to mass deleting comments: disabling comments, moderating comments, and using a comment spam filter.

Disabling Comments

One alternative to mass deleting comments is to simply disable comments altogether. While this may seem extreme, disabling comments can be a viable option for websites that don’t rely heavily on user feedback or interaction. For example, a business website that only uses its blog to publish news and updates may not need comments enabled at all. Disabling comments can also be useful for websites that have large amounts of spam or negative comments, as it eliminates the need to manage and delete them.

To disable comments in WordPress, simply go to the “Discussion” settings in your dashboard and uncheck the box that says “Allow people to post comments on new articles.” This will prevent new comments from being posted on your website. If you want to disable comments on existing posts, you can do so by editing each post individually and unchecking the box that says “Allow comments.”

Moderating Comments

Another alternative to mass deleting comments is to moderate them instead. Moderating comments means reviewing each comment that is posted on your website and approving or deleting it based on its content. This can be a time-consuming process, but it allows you to keep valuable feedback from your readers while also filtering out and negative comments.

To moderate comments in WordPress, go to the “Discussion” settings in your dashboard and check the box that says “Comment must be manually approved.” This will require you to approve each comment before it is posted on your website. You can also set up filters to automatically send certain comments to the spam folder or to require users to have their comments approved if they have not commented on your website before.

Using a Comment Spam Filter

Finally, using a comment spam filter is another alternative to mass deleting comments. Comment filters use algorithms to automatically detect and filter out spam comments from your website. This can save you a lot of time and effort, as you won’t have to manually review and delete each spam comment.

There are several comment spam filters available for WordPress, including Akismet and WP-SpamShield. These filters use a combination of algorithms and user-reported data to identify and block spam comments. Some filters may also allow you to set up custom filters to block specific types of comments or keywords.

In conclusion, mass deleting comments may not always be the best option for managing comments on your WordPress website. Disabling comments, moderating comments, and using a comment spam filter are all viable that can help you keep your comment section tidy without losing valuable feedback from your readers. By choosing the right alternative for your website, you can ensure that your comment section remains a valuable and engaging part of your online community.

Leave a Comment