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:
category_id (required)
category_id of the category to be deleted.
Options:
-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:

Testcases:
category_crud
[ show source ]
Show another procedure: