category::delete (public)
category::delete [ -batch_mode ] category_id
Defined in packages/categories/tcl/categories-procs.tcl
Deletes a category. category_tree::flush_cache should be used afterwards.
- Switches:
- -batch_mode (optional, boolean)
- Parameters:
- Options:
- category_id (required)
- category_id of the category to be deleted.
- -batch_mode
- Indicates that the cache for category translations should not be flushed. Useful when deleting several categories at once. Don't forget to call reset_translation_cache
- Author:
- Timo Hentschel <timo@timohentschel.de>
- See Also:
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- category_crud