public function delete_category(category_controller $category) : bool {
        $category = $this->validate_category($category);
        $result = api::delete_category($category);
        $this->clear_configuration_cache();
        return $result;
    }
public function delete_category(category_controller $category) : bool {
        $category = $this->validate_category($category);
        $result = api::delete_category($category);
        $this->clear_configuration_cache();
        return $result;
    }
public function delete_category ( category_controller $ category ) : bool { $ category = $ this -> validate_category ( $ category ) ; $ result = api :: delete_category ( $ category ) ; $ this -> clear_configuration_cache ( ) ; return $ result ; }
Permanently delete category, all fields in it and all associated data

@param category_controller $category
@return bool
Permanently delete category all fields in it and all associated data