How to Delete All Comments on WordPress?
Last Updated :
06 Jun, 2024
Comments are an integral part of a WordPress site, fostering interaction and engagement. However, there are moments when you might need to delete all comments, whether it's to start fresh, remove spam, or streamline your site's content. This article outlines several methods to accomplish this task, ensuring that you can take the path that best fits your technical comfort level and specific needs.
There are three primary methods to delete all comments on a WordPress site:
Using the WordPress Admin Dashboard
This method uses the built-in WordPress functionality to delete comments without needing any additional plugins or technical knowledge.
Step 1: Log in to your WordPress Admin Dashboard. Navigate to the Comments section by clicking on "Comments" in the sidebar.

Step 2: Select All Comments by clicking the checkbox at the top of the list to select all displayed comments.
Step 3: Bulk Action Selection: From the "Bulk Actions" dropdown menu, select "Move to Trash."

Step 4: Apply the Action: Click "Apply" to move the selected comments to the trash.
Step 5: Empty the Trash: Go to the "Trash" tab and select all comments again, then choose "Delete Permanently" from the bulk actions dropdown and apply.
Using a Plugin
For those who prefer a more automated approach, using a plugin can be a straightforward solution.
Step 1: Install the Plugin:
- Go to your WordPress Dashboard.
- Navigate to "Plugins" > "Add New."
- Search for "Wp bulk delete."
- Click "Install Now" and then "Activate."
- Go to "WP bulk delete" > "Delete Comments."

- Click on the "Delete All Comments" button.
Using SQL Queries
This method involves directly interacting with the database using SQL queries, offering a powerful way to manage your WordPress data.
Step 1: Access phpMyAdmin:
- Log in to your hosting control panel (e.g., hPanel).
- Open phpMyAdmin.
- Select your WordPress database.

Step 2: Run the SQL Query:
- Navigate to the SQL tab.
- Enter the SQL query to delete all comments.
- Execute the query.
Syntax:
DELETE FROM wp_comments;
DELETE FROM wp_commentmeta;
Note: The table prefix wp_ might be different if you have changed it during your WordPress installation. Adjust the prefix accordingly.
Example:
To delete all comments, enter the following SQL query:
DELETE FROM wp_comments;
DELETE FROM wp_commentmeta;
Output: Admin Dashboard: The comments list in the WordPress admin will be empty.
Conclusion
By following these methods, you can efficiently delete all comments from your WordPress site, whether you prefer using the admin dashboard, a plugin, or direct database manipulation. Each method offers different levels of control and complexity, allowing you to choose the best approach for your needs.
Similar Reads
How to Disable Comments in WordPress ?
WordPress is a powerful platform that allows you to create and manage a website with ease. While comments can be a great way to engage with your audience, there are times when you might want to disable them. Whether you're looking to prevent spam, keep your site professional, or simply maintain cont
3 min read
WordPress Delete Comments
WordPress is a tool and an open-source Content Management System that is totally based on PHP and MySql which is used to create a dynamic website. WordPress was written in PHP language by Matt Mullenweg. It is one of the most popular interfaces that allow users to customize and manage the website fr
2 min read
WordPress Moderate Comments
WordPress is a tool and an open-source Content Management System that is totally based on PHP and MySql which is used to create a dynamic website. WordPress was written in PHP language by Matt Mullenweg. It is one of the most popular interfaces that allow users to customize and manage the website fr
3 min read
How to approve comments automatically in WordPress ?
WordPress is a powerful tool for managing websites and blogs, and handling comments efficiently can greatly enhance user engagement. If you're tired of manually approving every comment, learning how to auto-approve comments in WordPress can save you time and streamline your workflow. This article wi
4 min read
How to Delete Pages in WordPress
Deleting pages in WordPress is a common task that website designers and administrators perform to keep their websites clean and up-to-date. Whether you need to remove outdated content, reduce clutter, or simply reorganize your pages, knowing how to delete pages in WordPress efficiently is essential.
3 min read
WordPress Edit Comments
WordPress is a popular platform for creating and managing websites, and it offers powerful tools for managing comments. Being able to edit comments in WordPress is crucial for maintaining the quality and relevance of discussions on your site. This article will guide you on how to easily edit comment
4 min read
How to clear the Cache in WordPress ?
If you are new to WordPress, learning how to clear your cache is an essential skill. Clearing your cache involves removing outdated data and content from your website's temporary storage, ensuring that you and your visitors see the most up-to-date information. Why Clear Your Cache in WordPress?When
3 min read
How to Approve the Moderate Comment in WordPress ?
WordPress is a tool and an open-source Content Management System that is totally based on PHP and MySql which is used to create a dynamic website. WordPress was written in PHP language by Matt Mullenweg. It is one of the most popular interfaces that allow users to customize and manage the website fr
2 min read
How to Delete Meta Tags in WordPress?
WordPress is an open-source Content Management System that is based on PHP and MySql which is used to create a dynamic website. Meta Tag generates codes or tags for search engines to pick up your page titles and meta descriptions. These are HTML codes used to describe the content of a page. In this
2 min read
WordPress Add Comments
WordPress is a powerful platform for building websites, and one of its best features is the ability to add comments. Allowing comments on your WordPress site can greatly increase user engagement and interaction. This article will show you how to easily add comments in WordPress, helping you to build
5 min read