public function actionDelete($templateId)
    {
        if($template = EmailTemplate::findOne($templateId)) {
            $template->delete();
        }

        return $this->redirect(Url::toRoute('list'));
    }
public function actionDelete($templateId)
    {
        if($template = EmailTemplate::findOne($templateId)) {
            $template->delete();
        }

        return $this->redirect(Url::toRoute('list'));
    }
public function actionDelete ( $ templateId ) { if ( $ template = EmailTemplate :: findOne ( $ templateId ) ) { $ template -> delete ( ) ; } return $ this -> redirect ( Url :: toRoute ( 'list' ) ) ; }
Removing of template

@param integer $templateId
@return Response
Removing of template