yii\elasticsearch\Query::delete PHP Method

delete() public method

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.
return array the query results.
    public function delete($db = null, $options = [])
    {
        return $this->createCommand($db)->deleteByQuery($options);
    }