controllers/ItemControllerAbstract.php
public function actionDelete($name)
    {
        $item = $this->getItem($name);
        \Yii::$app->authManager->remove($item);
        return $this->redirect(['index']);
    }
public function actionDelete($name)
    {
        $item = $this->getItem($name);
        \Yii::$app->authManager->remove($item);
        return $this->redirect(['index']);
    }
public function actionDelete ( $ name ) { $ item = $ this -> getItem ( $ name ) ; \ Yii :: $ app -> authManager -> remove ( $ item ) ; return $ this -> redirect ( [ 'index' ] ) ; }
Deletes item.
@param  string $name
@return Response
@throws NotFoundHttpException
Deletes item .