How can I bulk delete all posts in a custom post type?
-
Hi,
I realise there are a few plugins out there for bulk deleting posts, but none that I have come across work with custom post types. I also can not access the custom post type page in the admin area as it just times out due to too many custom post types (over 15k). I need to delete all these custom posts then do a different import. It was previously advised to me and I tried deleting the following tables in my mySQL database:
wp_posts
wp_postmeta
wp_terms
wp_term_relationships
wp_term_taxonomyAlthough this deleted all the custom posts I could no longer post a new post in that custom post type, and consequently could not re-import. I since restored to a previous version of my mySQL database and the tables are intact again.
Can anyone please suggest how I can delete all the posts of the custom post type without destroying all the extensive customisation that has gone into the custom post type?
Many thanks.
Nick
- The topic ‘How can I bulk delete all posts in a custom post type?’ is closed to new replies.