Deleting a ContentType and instances programmatically #10279
Answered
by
Skrypt
kevinsmgov
asked this question in
Q&A
-
In a migrations file, I have the option of deleting an existing content type . However, just deleting the type does not delete instances of the type, leaving their routes reserved. What would be the recommended way to accomplish this in a migrations file (i.e. so when the site is deployed to a production server, the content type and any instances are all removed automatically)? |
Beta Was this translation helpful? Give feedback.
Answered by
Skrypt
Sep 15, 2021
Replies: 1 comment 3 replies
-
I would simply use a SQL script for this. |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
kevinsmgov
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I would simply use a SQL script for this.