Is there a function (or a predefined set of functions) that will clear all posts, post tags and categories, all custom posts and custom post terms, attachments, menus and customizer settings?
So far I know how to delete all theme mods with
I found wp_delete_post() but this needs post ID I guess, since when I called it empty nothing happened.
I need a function that will quickly delete or trash all of the above, because I'm working on an import, so every time I import something I need to go to each page and delete everything manually, and this is tedious. It would save me time if I could do it in a single click/refresh.