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
Source code: db_exec_plsql delete_category "" if {!$batch_mode_p} { flush_translation_cache $category_id }XQL Not present: Generic PostgreSQL XQL file: <fullquery name="category::delete.delete_category"> <querytext> select category__del ( :category_id ) </querytext> </fullquery>packages/categories/tcl/categories-procs-postgresql.xql
Oracle XQL file: <fullquery name="category::delete.delete_category"> <querytext> begin category.del ( :category_id ); end; </querytext> </fullquery>packages/categories/tcl/categories-procs-oracle.xql