WordPress- Delete Pages directly

5 replies
Hey warriors,
I have a problem with my WordPress blog- there was a plugin which created hundreds of pages and I'm not able to delete them in the admin panel because everytime I try to get to the "delete page" there is an error. Can anyone tell me how to delete the sites without using the WP admin panel?

Thank you very much!
#delete #directly #pages #wordpress
  • Profile picture of the author dman9969
    Is it the UAW program? Try deleting the plugin, the creator, and then the post. I'm new to the wordpress, but that's what worked for me on my bro's ( he didn't like the random articles )
    {{ DiscussionBoard.errors[1863515].message }}
  • Profile picture of the author WilliamL
    No, it was a membership plugin. And no posts, pages.
    Cheers!
    Signature


    {{ DiscussionBoard.errors[1863656].message }}
  • Profile picture of the author digital29
    Have you tried deleting them from the database?
    {{ DiscussionBoard.errors[1863986].message }}
  • Profile picture of the author WilliamL
    Hey digital29,
    how can I do this exactly with the database? Don't want to loose content...
    Signature


    {{ DiscussionBoard.errors[1864278].message }}
  • Profile picture of the author mywebwork
    Hi William

    Before you even think of attempting this backup your MySQL database! If you don't know how to do that, or how to work directly with the database (with PHPMyAdmin or the MySQL GUI Tools) or how to use SQL commands then don't attempt this!

    In WordPress Pages, Posts and Attachments are all kept in the same table - wp_posts. There is a VARCHAR field in this table called "post_type". Any entry with a "post_type" of "page" is a WordPress Page.

    If you were to delete all of the entries with "post_type = 'page'" you would remove ALL your pages. This probably isn't what you want! You should look for a common identifier for all your generated pages and use them in your query.

    Before doing any DELETE query always run a SELECT query with the same parameters in the WHERE clause - just to make sure you're really deleting what you want to delete!

    Again, make sure you have a backup before you do any of this!

    Best of luck

    Bill
    {{ DiscussionBoard.errors[1866132].message }}

Trending Topics