WPBeginner

Beginner's Guide for WordPress

  • Blog
    • Beginners Guide
    • News
    • Opinion
    • Showcase
    • Themes
    • Tutorials
    • WordPress Plugins
  • Start Here
    • How to Start a Blog
    • Create a Website
    • Start an Online Store
    • Best Website Builder
    • Email Marketing
    • WordPress Hosting
    • Business Name Ideas
  • Deals
    • Bluehost Coupon
    • SiteGround Coupon
    • WP Engine Coupon
    • HostGator Coupon
    • Domain.com Coupon
    • Constant Contact
    • View All Deals »
  • Glossary
  • Videos
  • Products
X
☰
Beginner's Guide for WordPress / Start your WordPress Blog in minutes
Choosing the Best
WordPress Hosting
How to Easily
Install WordPress
Recommended
WordPress Plugins
View all Guides

WPBeginner» Blog» Tutorials» How to Delete All Pending Comments in WordPress

How to Delete All Pending Comments in WordPress

Last updated on September 1st, 2020 by Editorial Staff
77 Shares
Share
Tweet
Share
Pin
Free WordPress Video Tutorials on YouTube by WPBeginner
How to Delete All Pending Comments in WordPress

Do you have a lot of pending comments in WordPress that you want to delete? This can easily happen if you get a lot of spam comments.

Normally, deleting comments in WordPress is easy, but it gets trickier when there is a large number of pending comments. You may even come across weird errors while bulk deleting comments if there are too many of them.

In this article, we’ll show you how to easily bulk delete all pending comments in WordPress, step by step.

Deleting all pending comments in WordPress

What Are Pending Comments in WordPress?

Pending comments in WordPress are the comments that are awaiting moderation.

You’ll find them in the WordPress admin area by visiting the ‘Comments’ page and switching to the ‘Pending’ tab.

The number of pending comments showing in the WordPress admin sidebar and on the dashboard

We recommend users turn on comment moderation on all their websites to combat comment spam. This means all comments on your website will go to the Pending queue before they are approved.

Why would anyone want to delete pending comments?

There are many scenarios when you may need to do that. For instance:

  • Akismet anti-spam plugin got disabled on your site and suddenly all spam comments are appearing in pending.
  • You simply forgot about a website, and it gathered hundreds of comments that are no longer relevant.
  • Articles on your website generating a lot of unwanted comments
  • You forgot to turn off comments on older posts

It can take a long time to go through and moderate each comment individually. If you are confident that there are no comments marked ‘pending’ that you want to keep, then you can simply bulk delete them all.

1. Deleting All Pending Comments in WordPress Manually

If you only have a few hundred pending comments, it’s quite quick to delete them manually.

Simply go to the ‘Comments’ page in WordPress admin area and then click on the ‘Pending’ tab to see a list of all your pending comments.

By default, this list will show 20 pending comments at a time. To change this, click on the ‘Screen Options’ tab at the top-right corner of the page.

Opening up the screen options tab on the pending comments page

Next, type ‘100’ into the ‘Number of items per page’ and click the Apply button:

Changing the pagination for the comments to fit more on each page

Now that you have 100 comments displaying, simply check the box to the left of ‘Author’ at the top of the list of comments. This selects all the comments on the page:

Check the box to the left of Author to select all comments on the page

Then, click on the ‘Bulk actions’ dropdown and select the ‘Move to Trash’ option. Go ahead and click the Apply button to move all those comments into the trash:

Bulk selecting the pending comments and moving them to the trash

WordPress will automatically show the next 100 comments on the page. Simply repeat the process to remove these too.

When you delete any comment on WordPress, it is not deleted right away. Instead, it is sent to the ‘Trash’ and will remain there for 30-days. After that, it will be automatically deleted permanently.

If you would rather delete them permanently right away, then you need to switch to the ‘Trash’ tab on the ‘Comments’ page and then click on the ‘Empty Trash’ button.

Emptying the trash to delete all the pending comments from WordPress

You will then see a message confirming that those comments have been deleted:

WordPress showing a message to confirm that the comments have been permanently deleted

Note: You can use the Screen Options to show up to 999 comments per page. However, this will increase the load on your WordPress hosting servers and slow down your site. You might also see an error message like this one when you try to move comments to the trash:

Error message shown when trying to move too many comments to the trash at one time

If you have more than a few hundred pending comments, then we recommend using a plugin method to delete them.

2. Deleting Large Number of Pending Comments in WordPress Using a Plugin

The quickest way to delete a very large number of pending comments is to use a plugin.

This will delete your pending (and spam) comments permanently. We recommend making a backup of your WordPress site before proceeding, just in case you change your mind later.

First, you need to install and activate the Delete Pending Comments plugin. For more details, see our step by step guide on how to install a WordPress plugin.

Upon activation, go to the Comments » Delete Pending Comments page in your WordPress admin. You will see a message letting you know how many pending comments there are.

Note: This figure includes spam comments, which are deleted at the same time as the pending comments.

The Delete Pending Comments page in the WordPress admin

To delete all the pending comments, you need to type the required line of text into the box. You can copy and paste this text if you prefer.

After that, go ahead and click the ‘Delete Pending Comments’ button.

Enter the line of text in order to delete the pending comments

You will then see a message confirming that all pending and spam comments have been deleted.

Message confirming that all pending and spam comments have been deleted

Deleting Spam Comments Only in WordPress

What if you don’t want to delete pending comments but just want to delete the ones that are marked as spam? That’s very easy to do in WordPress.

First, go to Comments in your WordPress admin and click on the Spam tab:

Click on the Spam tab to see a list of comments that have been marked as spam

Next, click the Empty Spam button. This will delete all spam comments permanently, not just the ones on the current page:

Empty the spam to permanently delete all spam comments

We hope this article helped you learn how to delete all pending comments in WordPress. You may also want to see our WordPress security guide to protect your website, or see our guide on how to allow users to report inappropriate comments in WordPress.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

77 Shares
Share
Tweet
Share
Pin
Popular on WPBeginner Right Now!
  • Checklist

    Checklist: 15 Things You MUST DO Before Changing WordPress Themes

  • How to Properly Move Your Blog from WordPress.com to WordPress.org

  • How to Fix the Error Establishing a Database Connection in WordPress

    How to Fix the Error Establishing a Database Connection in WordPress

  • Google Analytics in WordPress

    How to Install Google Analytics in WordPress for Beginners

About the Editorial Staff

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi. Trusted by over 1.3 million readers worldwide.

The Ultimate WordPress Toolkit

6 Comments

Leave a Reply
  1. Stan Williams says:
    Sep 11, 2020 at 10:19 pm

    Good tip. s I also find that Askimet already weeds out 99% of comments and puts them i spam folder which gets deleted automatically periodically anyway so the few that remain are usually from a legit source. I have used it on many many website for many year now.

    Reply
    • WPBeginner Support says:
      Sep 15, 2020 at 11:37 am

      Glad you’ve found Akismet helpful :)

      Reply
  2. Joan Menter says:
    Sep 2, 2020 at 10:04 am

    This was a clear informative piece and easy to follow. I often don’t have time for a lot of complicated instructions. I know that can’t always be avoided but I can grab info like this and run with it. Thank you.

    Reply
    • WPBeginner Support says:
      Sep 2, 2020 at 11:13 am

      You’re welcome :)

      Reply
  3. Alice Miller says:
    Sep 1, 2020 at 11:54 pm

    Delete Pending Comments is awesome. I was able to clean up lots of comments very easily.

    Thanks for the article.

    Reply
    • WPBeginner Support says:
      Sep 2, 2020 at 11:09 am

      You’re welcome :)

      Reply

Leave a Reply Cancel reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

Over 1,320,000+ Readers

Get fresh content from WPBeginner

Featured WordPress Plugin
PushEngage
PushEngage
Increase your website traffic & revenue with push notifications. Learn More »
How to Start a Blog How to Start a Blog
I need help with ...
Starting a
Blog
WordPress
Performance
WordPress
Security
WordPress
SEO
WordPress
Errors
Building an
Online Store
Useful WordPress Guides
    • 7 Best WordPress Backup Plugins Compared (Pros and Cons)
    • How to Fix the Error Establishing a Database Connection in WordPress
    • Why You Need a CDN for your WordPress Blog? [Infographic]
    • 30 Legit Ways to Make Money Online Blogging with WordPress
    • Self Hosted WordPress.org vs. Free WordPress.com [Infograph]
    • Free Recording: WordPress Workshop for Beginners
    • 24 Must Have WordPress Plugins for Business Websites
    • How to Properly Move Your Blog from WordPress.com to WordPress.org
    • 5 Best Contact Form Plugins for WordPress Compared
    • Which is the Best WordPress Popup Plugin? (Comparison)
    • Best WooCommerce Hosting in 2020 (Comparison)
    • How to Fix the Internal Server Error in WordPress
    • How to Install WordPress - Complete WordPress Installation Tutorial
    • Why You Should Start Building an Email List Right Away
    • How to Properly Move WordPress to a New Domain Without Losing SEO
    • How to Choose the Best WordPress Hosting for Your Website
    • How to Choose the Best Blogging Platform (Comparison)
    • WordPress Tutorials - 200+ Step by Step WordPress Tutorials
    • 5 Best WordPress Ecommerce Plugins Compared
    • 5 Best WordPress Membership Plugins (Compared)
    • 7 Best Email Marketing Services for Small Business (2020)
    • How to Choose the Best Domain Registrar (Compared)
    • The Truth About Shared WordPress Web Hosting
    • When Do You Really Need Managed WordPress Hosting?
    • 5 Best Drag and Drop WordPress Page Builders Compared
    • How to Switch from Blogger to WordPress without Losing Google Rankings
    • How to Properly Switch From Wix to WordPress (Step by Step)
    • How to Properly Move from Weebly to WordPress (Step by Step)
    • Do You Really Need a VPS? Best WordPress VPS Hosting Compared
    • How to Properly Move from Squarespace to WordPress
    • How to Register a Domain Name (+ tip to get it for FREE)
    • HostGator Review - An Honest Look at Speed & Uptime (2020)
    • SiteGround Reviews from 4196 Users & Our Experts (2020)
    • Bluehost Review from Real Users + Performance Stats (2020)
    • How Much Does It Really Cost to Build a WordPress Website?
    • How to Create an Email Newsletter the RIGHT WAY (Step by Step)
    • Free Business Name Generator (A.I Powered)
    • How to Create a Free Business Email Address in 5 Minutes (Step by Step)
    • How to Install Google Analytics in WordPress for Beginners
    • How to Move WordPress to a New Host or Server With No Downtime
    • Why is WordPress Free? What are the Costs? What is the Catch?
    • How to Make a Website in 2020 – Step by Step Guide
Deals & Coupons (view all)
RafflePress - WordPress Giveaway and Contest Plugin
RafflePress Coupon
Get 20% off RafflePress, the best WordPress giveaway and contest plugin available in the market.
FT Calendar
FT Calendar Coupon
Get $10 off on Full Throttle Calendar plugin (highly customizable and advanced WordPress plugin)
Featured In
About WPBeginner®

WPBeginner is a free WordPress resource site for Beginners. WPBeginner was founded in July 2009 by Syed Balkhi. The main goal of this site is to provide quality tips, tricks, hacks, and other WordPress resources that allows WordPress beginners to improve their site(s).
Join our team: We are Hiring!

Site Links
  • About Us
  • Contact Us
  • FTC Disclosure
  • Privacy Policy
  • Terms of Service
  • Free Blog Setup
  • Free Business Tools
Our Sites
  • OptinMonster
  • MonsterInsights
  • WPForms
  • SeedProd
  • Nameboy
  • RafflePress
  • Smash Balloon

Copyright © 2009 - 2021 WPBeginner LLC. All Rights Reserved. WPBeginner® is a registered trademark.

Managed by Awesome Motive | WordPress hosting by SiteGround | WordPress CDN by MaxCDN | WordPress Security by Sucuri.