CustomEntityManager provides a method called DeleteCustomEntity that will remove a custom sub-entity and all of its data from a database. As with all the methods that update the database schema, the database will need to be locked to call this method.
After this method returns, the custom sub-entity is gone from the database and references to its CustomEntityDescriptor or CustomSubEntityManager should be set to null since they are now invalid and can be destroyed.