Delete pending WordPress comments

With this plugin you can easily delete all pending WordPress comments. It's quite useful if you're the victim of a spammer attack.

Delete pending commentsDelete pending comments

Downloads at WordPress.org.

WordPress plugin demos are disabled as I don't use WordPress on this site any more.

Published on Oct. 11, 2009 at 5:59 p.m. by Nicolas and tagged delete comments, delete pending comments, WordPress, WordPress comments, WordPress plugin. You can follow the discussion with the comment feed for this post. Feeling generous? Donate!

60 comments

  1. avatar
    wrote this comment on

    Thanks a lot !
    now I can have a beer...

    Reply to this comment
    1. avatar
      wrote this comment on

      Cheers!

      Reply to this comment
      1. avatar
        wrote this comment on
        I had more than 32,000 spam messages. I had to close down my comments section on blog. I am now back in business!!!! Thank you!
        Reply to this comment
  2. avatar
    wrote this comment on

    Oh thank you so much. I had 116,000 pending comments to delete and I really had better things to do with my time than delete them in groups of 20. You made my day!

    Reply to this comment
  3. avatar
    wrote this comment on

    Hi sir, very thanks alot for your plugin, it's really help me so much!

    Reply to this comment
  4. avatar
    wrote this comment on

    Just wanted to say thank you, thank you, thank you for this plugin - had over 2000 pending spam comments - The plugin worked perfectly for me to make them all disappear :)

    Reply to this comment
  5. avatar
    wrote this comment on

    This is a great plugin and great cause you gotta safety by coping and pasting the sentence just to make sure it is what you really want to do

    Reply to this comment
    1. avatar
      wrote this comment on

      I'm glad you like it!

      Reply to this comment
  6. avatar
    wrote this comment on

    Hi Nicolas,

    This plugin has been a huge time saver for me. Thanks for creating this wonderful plugin. just deleted 850 comments from by blog.

    Regards

    Reply to this comment
    1. avatar
      wrote this comment on

      That's great! :-)

      Reply to this comment
  7. avatar
    wrote this comment on

    I know this probably doesn't actually involve your plugin but maybe you can help. I have a comment notification (1 new). If I check the comments it says that there is one pending comment. But if I go to the pending comments there are zero. I tried your plugin but the "pending comment" still remains. I installed a plug-in called My Comment Manager and when I view all the comments in there it says that there are zero pending comments. Any idea what could be going on?

    Reply to this comment
    1. avatar
      wrote this comment on

      I'd try to disable the comment manager first.

      Reply to this comment
  8. avatar
    wrote this comment on

    i am using this plugin but it shows "Please try again. Did you copy the text properly?" but i copied the text correctly !!! can u help me in this

    Reply to this comment
    1. avatar
      wrote this comment on

      Please try again. You probably made an error.

      Reply to this comment
      1. avatar
        wrote this comment on

        No i tried it many types can u just type the text here .which i hav to copy and paste

        Reply to this comment
        1. avatar
          wrote this comment on

          Please use my contact form and send me url + admin log in to your blog. I'll have a look.

          Reply to this comment
  9. avatar
    wrote this comment on

    Omg so helpful. I had like 3,000 pending. I spent the last hour deleting the approved ones. Then I did a search and found this. Thanks a lot.

    Also for the problem the Ram has above. Make sure there is no space after undone. If there is a space ' ' like that it won't work.

    Reply to this comment
  10. avatar
    wrote this comment on

    I love this plugin but one suggestion is that the text input that you use to verify you want to delete the comments should apply a trim() on the data or even a preg_match() for the phrase. Whitespace causes the plugin to say that the phrase is wrong even if it isn't.

    Reply to this comment
    1. avatar
      wrote this comment on

      Hmmm, I guess you are right about typos. But it was my goal to make it hard to delete comments. Maybe I'll shorten the phrase though, I'll give it some thought.

      Reply to this comment
  11. avatar
    wrote this comment on

    Thanks Nicolas Boss, you have saved my blog. I like ur work,

    Thank u so much, so much, so much.

    Can't words to say u, its amazing, its nice, its marvelous,

    Thanks

    Reply to this comment
  12. avatar
    wrote this comment on

    Excellent plug in.
    Thank you!
    Is there a plug in to delete comments already posted? Got hit with a spam attack and need to get rid of all of them, over 30,000 ... :(
    Kris

    Reply to this comment
  13. avatar
    wrote this comment on

    Thank you so much! I run dozens of WP sites and have thousands of spam comments to delete. This certainly beats removing them one page at a time!!!

    Reply to this comment
  14. avatar
    wrote this comment on
    Hi. Thanks for taking the time to make this useful plugin. Unfortuneately it's not working for me. I get this message:

    <i> "Fatal error: Call to undefined function get_comments() in /home/wants0/public_html/wp-content/plugins/delete-pending-comments/inc/admin.php on line 60"</i>

    Is it because I don't have the latest version of wordpress? I wrote a lot of php code inside core wordpress files and am afraid to update, and delete my previous work. So is there a way I can modify the plugin to get it to work on 2.6? (I think that's the version I'm running)
    Reply to this comment
    1. avatar
      wrote this comment on
      :-D No idea. You shouldn't have touched the core to begin with. I'd recommend that you move your own code into a plugin. Good luck!
      Reply to this comment
      1. avatar
        wrote this comment on
        I get this same error message, and have not touched any "core files" (don't even know what that means). Is wordpress version possible issue? (I have 2.6.5)
        Thanks so much for tool
        Reply to this comment
        1. avatar
          wrote this comment on
          Oh, 2.6.5 is ancient. I'm not surprised the plugin doesn't work with that.
          Reply to this comment
      2. avatar
        wrote this comment on
        Sorry, just found answer to my previous Q...
        Installed 2.7 and spam comments obliterated. Thanks!
        Reply to this comment
        1. avatar
          wrote this comment on
          Oops... just replied to your other comment :-) Great!
          Reply to this comment
  15. avatar
    wrote this comment on
    OMG this plugin is a lifesaver! I have nearly 4,000 pending comments --- all courtesy of spammers (GRRR) --- and this is really a big help. Thank you!!!


    Irene
    Reply to this comment
  16. avatar
    wrote this comment on
    great plugin, but for those getting the "Please try again. Did you copy the text properly?" error message:

    after pasting, you need to hit backspace to kill the single space of white space after the very last letter of the phrase; the "e" of "undone"
    Reply to this comment
  17. avatar
    wrote this comment on
    Cheers… I had 400.711 Pending Comments! http://myli.eu/400711
    Reply to this comment
    1. avatar
      wrote this comment on
      Nice :-) thanks for sharing!
      Reply to this comment
  18. avatar
    wrote this comment on
    Used this plugin successfully on one of my sites. Downloaded it again for a site today... and found that it didn't load underneath my comments. Anyone else have this problem? How'd you fix it?
    Reply to this comment
    1. avatar
      wrote this comment on
      Can you try with the default theme? There needs to be some hook in the comment form, I think that's also documented in the readme.txt.
      Reply to this comment
  19. avatar
    wrote this comment on
    Hey Nicholas,

    Thanks for such a great pluguin. There is anyway you can delete "Approved" comments with a plugin instead of going to phpmyadmin. I don't want to touch that meany stuff. If there is a way i got about 5,000 approved comments which i want them deleted.
    Please reply back soon :D Thanks -Wajid
    Reply to this comment
    1. avatar
      wrote this comment on
      I'm glad you like it!
      Reply to this comment
  20. avatar
    wrote this comment on
    Great plugin. I hate it when I have thousands of comments and have to click on the "Select All" at the top of each page. THis was very helpful. Thanks!
    Reply to this comment
  21. avatar
    wrote this comment on
    thanks for this plugin but i am unable to delete the comments. what is the text to be copy.
    Reply to this comment
    1. avatar
      wrote this comment on
      The text you need to enter is on the delete page. You just have to copy and paste it.
      Reply to this comment
  22. avatar
    wrote this comment on
    like the plugin very much! lot's of spam already out. the amount of spam made me install captcha as well.
    Reply to this comment
  23. avatar
    wrote this comment on
    Hi,
    So I downloaded this plugin via FTP (plugin folder) and WP does not display plugin. I think I am using WP version 3.0 or higher. What am I doing wrong? I have over 65k pending spam comments to delete.

    any help is appreciated.
    Reply to this comment
    1. avatar
      wrote this comment on
      No idea. Maybe the file permissions are incorrect. Please see http://codex.wordpress.org/Managing_Plugins
      Reply to this comment
  24. avatar
    wrote this comment on
    hi!
    I set up your plugin, but I don't know what type in option? it always notice "Please try again. Did you copy the text properly?". please help me!!
    Reply to this comment
    1. avatar
      wrote this comment on
      You're probably not copying the text properly?
      Reply to this comment
  25. avatar
    wrote this comment on
    Dear Nicolas Kuttler, It is unclear how to access and download your "delete all pending comments" plug in. It appears there is a fee involved (for us to pay to you). It is not clear to me if this will block incoming comments, and the one or two I have approved, or just comments waiting to be approved or deleted. It also appears that the latest version of Wordpress has a built in delete all button? I only know how to add posts to our site Built in 2007-2008, and am reluctant to upgrade to the latest version - If I messed the site up, I would have to have to bother my website designer associate minister to try and fix it. What do I do? Thanks, Revs. David and Harriet Hupp
    Reply to this comment
    1. avatar
      wrote this comment on
      Dear David Hupp, the plugin is available for free at http://wordpress.org/extend/plugins/delete-pending-comments/ . The plugin doesn't block anything. Yes, it can be used to delete all comments that haven't been approved yet.

      It is always recommended to make a backup from time to time. Please refer to http://codex.wordpress.org/WordPress_Backups for instructions.
      Reply to this comment
  26. avatar
    wrote this comment on
    You total saviour!!!
    Reply to this comment
  27. avatar
    wrote this comment on
    serious issue after using this plugin.
    all my posts got deleted (more than 3900)

    why this has happened?
    how do i restore them now?

    please help.
    i have emailed you aswell.
    Reply to this comment
    1. avatar
      wrote this comment on
      My plugin can't delete posts, it's impossible. Restore your backups. Btw.. your site looks fine to me and I removed your link..
      Reply to this comment
  28. avatar
    wrote this comment on
    I have installed the plug-in however it's not showing in the settings so please help me with the instructions about how to run it.

    Thanks in advance
    Reply to this comment
    1. avatar
      wrote this comment on
      Please check the FAQ.
      Reply to this comment
  29. avatar
    wrote this comment on
    greaaaaaaaaaaaaaaaatttt pluging
    deleted 24,000 spam
    mmmmmmmmmmmm,god

    thank u sir
    Reply to this comment
  30. avatar
    wrote this comment on
    26k SPAM Comments.... ZAP!
    Time for a drink. Danke Nicolas!
    Reply to this comment
    1. avatar
      wrote this comment on
      Yay!
      Reply to this comment
  31. avatar
    wrote this comment on
    WARNING: This plugin does not work properly with Wordpress 3.5.1 - it deletes ALL comments, not just pending comments
    Reply to this comment
    1. avatar
      wrote this comment on
      My plugin can't do that, it's impossible. Oh, and you're just a stupid spammer, I deleted your link, and your site doesn't even use wordpress. End of story.
      Reply to this comment
  32. avatar
    wrote this comment on
    Thank you. You just made my day! This was amazingly easy and worked like a charm. Danke!
    Reply to this comment
  33. avatar
    wrote this comment on
    You are my hero!!! I dumped over 10,000 in one operation.
    Reply to this comment
  34. avatar
    wrote this comment on
    Thank you so much for this plugin! It made my day. You rock!
    Reply to this comment
  35. avatar
    wrote this comment on
    Using WP 3.7.1, I received the error message: "Warning: Missing argument 2 for wpdb:prepare(), called in /home/.../public_html/wp-content/plugins/delete-pending-comments/inc/admin.php on line 73 and defined in /home/.../public_html/wp-includes/wp-db.php on line 992.
    Reply to this comment

Start a new thread

Cancel reply
Markdown. Syntax highlighting with <code lang="php"><?php echo "Hello, world!"; ?></code> etc.