public function deleteObject($entity)
    {
        try {
            return (bool) $entity->delete();
        } catch (\Exception $ex) {
            Yii::$app->getErrorHandler()->logException($ex);

            return false;
        }
    }
public function deleteObject($entity)
    {
        try {
            return (bool) $entity->delete();
        } catch (\Exception $ex) {
            Yii::$app->getErrorHandler()->logException($ex);

            return false;
        }
    }
public function deleteObject ( $ entity ) { try { return ( bool ) $ entity -> delete ( ) ; } catch ( \ Exception $ ex ) { Yii :: $ app -> getErrorHandler ( ) -> logException ( $ ex ) ; return false ; } }
Removes email template object.

@param EmailTemplate $entity

@return bool
Removes email template object .