[source, ruby]
----
response = client.delete_by_query(
  index: 'my-index-000001',
  scroll_size: 5000,
  body: {
    query: {
      term: {
        'user.id' => 'kimchy'
      }
    }
  }
)
puts response
----
