WordPress Version: 5.8
/**
* Unregisters a pattern category.
*
* @since 5.5.0
*
* @param string $category_name Pattern category name including namespace.
* @return bool True if the pattern category was unregistered with success and false otherwise.
*/
function unregister_block_pattern_category($category_name)
{
return WP_Block_Pattern_Categories_Registry::get_instance()->unregister($category_name);
}