Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Jul 2009
    Thanked 0 Times in 0 Posts

    deleteing spam posts from database

    for my wordpress site i am cleaning my database from spam, which were somehow inserted there, but my site is working regardless. i opened phpmyadmin, the table wp_posts. so i simply go to the tab that says browse, go over the posts one by one, find spam posts and just hit delete and those posts are physically removed right?

    but what about the table called wp_postmeta? dont all the possts in wp_posts have a corresponding entry in wp_postmeta? if so , if i delete spam posts from posts table will it be a problem or it is ok?

    even if it is ok, the meta for the spam post means it is still in postmeta table if i delete just the post. so is there a better way to clean faster and both? i didnt touch anything yet. i want to know first
    Last edited by ketanco; Dec 19th, 2018 at 09:58 PM.

  2. #2
    Supreme Master coder!
    Join Date
    Jun 2003
    Cottage Grove, Minnesota
    Thanked 1,189 Times in 1,179 Posts
    I would use a plugin to do all of the selection and deletion ... and not do it manually using phpmyadmin.

    This is just one example of many available plugins:

    This allows deletion by "pending", or many other filtering options. The plugins are mostly free, but the "pro" versions have more features. Still, it is worth the extra cost if the pro versions work for you. Deleting anything manually in the database is risky business if you don't know what you're doing, you'll cause problems elsewhere.

    Just my opinion.

  3. #3
    New to the CF scene
    Join Date
    Jan 2019
    UK, London
    Thanked 0 Times in 0 Posts
    Thanks, I just had a similar problem for a blog on the Word Press.


Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts