backend/controllers/UsersController.php
/**
     * Deletes an existing Users model.
     * If deletion is successful, the browser will be redirected to the 'index' page.
     * @param string $id
     * @return mixed
     */
Deletes an existing Users model.
If deletion is successful, the browser will be redirected to the 'index' page.
@param string $id
@return mixed
Deletes an existing Users model . If deletion is successful the browser will be redirected to the ' index ' page . @param string $id @return mixed
public function actionDelete($id)
    {
        return $this->redirect('index');
    }
public function actionDelete ( $ id ) { return $ this -> redirect ( 'index' ) ; }
Deletes an existing Users model.
Deletes an existing Users model .
/*
        $this->findModel($id)->delete();

        if (Yii::$app->getRequest()->isAjax) {
            unset($_GET['id']);
            return $this->getIndexContent('renderPartial');
        }

        $qs = Yii::$app->request->get('qs');
        if ($qs) { $qs = "?".base64_decode($qs); } else { $qs = ""; }
        return $this->redirect(['index'.$qs]);
        */