delete_by_query: if no query present, use match_all query