yii\elasticsearch\Query::delete PHP Метод

delete() публичный Метод

Everything except query and filter will be ignored.
public delete ( Connection $db = null, array $options = [] ) : array
$db Connection the database connection used to execute the query. If this parameter is not given, the `elasticsearch` application component will be used.
$options array The options given with this query.
Результат array the query results.
    public function delete($db = null, $options = [])
    {
        return $this->createCommand($db)->deleteByQuery($options);
    }