I'm looking for a safe and fast way to delete all of one custom post type's posts. Using
wp_delete_post() for each returned post does not work; it's not fast enough due to the sheer amount of database queries involved (timeout error).
Preferably, I'm looking for a single database query to run that deletes all posts that are of a custom post type. Any thoughts?