controllers/actions/DeleteSourceAction.php
public function run()
    {
        Yii::$app->response->format = Response::FORMAT_JSON;

        $ids = Yii::$app->request->post('ids');

        LanguageSource::deleteAll(['id' => (array) $ids]);

        return [];
    }
public function run()
    {
        Yii::$app->response->format = Response::FORMAT_JSON;

        $ids = Yii::$app->request->post('ids');

        LanguageSource::deleteAll(['id' => (array) $ids]);

        return [];
    }
public function run ( ) { Yii :: $ app -> response -> format = Response :: FORMAT_JSON ; $ ids = Yii :: $ app -> request -> post ( 'ids' ) ; LanguageSource :: deleteAll ( [ 'id' => ( array ) $ ids ] ) ; return [ ] ; }
Deletes an existing LanguageSource model.
If deletion is successful, the browser will be redirected to the 'list' page.

@return array
Deletes an existing LanguageSource model . If deletion is successful the browser will be redirected to the list page .