How to delete all posts from a custom post type?

Question

I want to delete all posts from a custom post type “TV-Serie”. The number of all posts in this post type are 150,000.
Moreover, when I try to delete them all manually while selecting more than 500 posts at once this provides “timeout error”.

Any idea on how to delete them all?

0
Zulkifl Agha 1 month 0 Answers 7 views 0

Leave an answer