question: public void deleteResource ( ) throws ForbiddenAccessException { checkPermission ( DeletePermission . class , this ) ; Map < String , Relationship > relations = getRelationships ( ) ; for ( Map . Entry < String , Relationship > entry : relations . entrySet ( ) ) { String relationName = entry . getKey ( ) ; if ( dictionary . cascadeDeletes ( getResourceClass ( ) , relationName ) ) { continue ; } String inverseRelationName = dictionary . getRelationInverse ( getResourceClass ( ) , relationName ) ; if ( ! inverseRelationName . equals ( "" ) ) { for ( PersistentResource inverseResource : getRelationCheckedFiltered ( relationName ) ) { if ( hasInverseRelation ( relationName ) ) { deleteInverseRelation ( relationName , inverseResource . getObject ( ) ) ; inverseResource . markDirty ( ) ; } } } } transaction . delete ( getObject ( ) ) ; auditClass ( Audit . Action . DELETE , new ChangeSpec ( this , null , getObject ( ) , null ) ) ; runTriggers ( OnDelete . class ) ; }
target:  Delete an existing entity.