Deleting CPTs – How to “clean” everything (rewrite rules included)
-
Hello,
I have read through some posts in here about deleting CPTs and I understand that deleting the CPT does NOT remove any posts made within that CPT. So I do know to delete those before deleting the CPT itself from within the plugin.
However, I found that even after deleting the CPT, which had no posts within it, the data for it is still in my wp_options “rewrite_rules” table. I’m unsure if this means too that there are other things “left behind” from the CPT.
I’m wanting to also delete some custom taxonomies I created with the plugin, but want to be sure with removals of the taxonomies and CPTs that they don’t remain in places like the wp_options “rewrite_rules” table, which autoloads on every page.
Is there any way for me to safely remove all traces of CPTs and custom taxonomies created with this plugin? (Outside of the content itself, as I understand I need to delete that prior to removing the CPT itself).
I hope this makes sense and that I haven’t missed this in the documentation/FAQ.
Thank you so much for your time!
The topic ‘Deleting CPTs – How to “clean” everything (rewrite rules included)’ is closed to new replies.