The following steps are required to delete a resource from a table:
Instantiate a CTResource object by calling one of the CTResource constructors. You should pass at least the resource type and number. The resource name is optional. If you use a CTResource constructor that does not take the resource type and number, you need to call CTResource::SetType() and CTResource::SetNumber() to set the resource type and number before you add a new resource.
Call CTResource::Delete() method to delete the resource
Once the CTResource object is no longer needed, destroy the object to release any system resources.
A resource can be deleted from a table by calling the following CTResource class method: