wp_delete_category
wp_delete_category ( $cat_id )
Parameters:- (int) cat_id Category term ID.
Returns:- (bool|int|WP_Error) Returns true if completes delete action; false if term doesn't exist; Zero on attempted deletion of default Category; WP_Error object is also a possibility.
Defined at: - Introduced in WordPress: 2.0.0
- Deprecated in WordPress: —
Description
Deletes one existing category.