public function actionDelete($id)
    {
        if (Yii::$app->request->isPost) {
            $this->findModel($id)->delete();
        }
        return $this->redirect(['index']);
    }
public function actionDelete($id)
    {
        if (Yii::$app->request->isPost) {
            $this->findModel($id)->delete();
        }
        return $this->redirect(['index']);
    }
public function actionDelete ( $ id ) { if ( Yii :: $ app -> request -> isPost ) { $ this -> findModel ( $ id ) -> delete ( ) ; } return $ this -> redirect ( [ 'index' ] ) ; }
Deletes an existing Setting.
If deletion is successful, the browser will be redirected to the 'index' page.
@param integer $id
@return mixed
Deletes an existing Setting . If deletion is successful the browser will be redirected to the index page .