To remove a Category you need to perform the following:
TaxonomyManager
HierarchicalTaxon
Delete
SaveChanges
Use the following code snippet:
The same approach can be used with all flat and hierarchical taxonomies not only for tags and categories. Use the following code snippet as an example where Cities is a custom Flat Taxonomy that you created:
Sign up for our free beginner training. Boost your credentials through advanced courses and certification. Register for Sitefinity training and certification.
To submit feedback, please update your cookie settings and allow the usage of Functional cookies.
Your feedback about this content is important