Removes and frees the category and all associated resources.
Deprecated: This function can easily cause memory corruption, don't use it.
See Implementation
Removes and frees the category and all associated resources.