Posts tagged How to remove all Posts from Wordpress safely

How to remove all Posts from WordPress safely

If you want to remove all the posts from a wordpress then you can do it in few simple steps.

first take the backup of the database

[email protected][#] mysqldump --opt DB_dbname > DB_dbname.sql

then

[email protected][#] mysql 
 use DB_dbname ;
show tables;
select the table wp_posts
TRUNCATE TABLE wp_posts;
 quit
 

 

That’s all you are done, easy isn’t.