src/components/Auth.php
public function executeCleanup(array $data)
    {
        foreach ($data as $rule) {
            Yii::$app->db->createCommand()->delete('{{%admin_auth}}', 'id=:id', ['id' => $rule['id']])->execute();
            Yii::$app->db->createCommand()->delete('{{%admin_group_auth}}', 'auth_id=:id', ['id' => $rule['id']])->execute();
        }

        return true;
    }
public function executeCleanup(array $data)
    {
        foreach ($data as $rule) {
            Yii::$app->db->createCommand()->delete('{{%admin_auth}}', 'id=:id', ['id' => $rule['id']])->execute();
            Yii::$app->db->createCommand()->delete('{{%admin_group_auth}}', 'auth_id=:id', ['id' => $rule['id']])->execute();
        }

        return true;
    }
public function executeCleanup ( array $ data ) { foreach ( $ data as $ rule ) { Yii :: $ app -> db -> createCommand ( ) -> delete ( '{{%admin_auth}}' , 'id=:id' , [ 'id' => $ rule [ 'id' ] ] ) -> execute ( ) ; Yii :: $ app -> db -> createCommand ( ) -> delete ( '{{%admin_group_auth}}' , 'auth_id=:id' , [ 'id' => $ rule [ 'id' ] ] ) -> execute ( ) ; } return true ; }
Execute the data to delete based on an array containing a key 'id' with the corresponding value from the Database.

@param array $data
@return bool
Execute the data to delete based on an array containing a key id with the corresponding value from the Database .