@ Indexable ( type = IndexableType . DELETE ) @ Override public CPInstance deleteCPInstance ( long CPInstanceId ) throws PortalException { return cpInstancePersistence . remove ( CPInstanceId ) ; }
Deletes the cp instance with the primary key from the database . Also notifies the appropriate model listeners .