indices.delete

edit
client.indices.delete({
  index: string | string[],
  timeout: string,
  master_timeout: string,
  ignore_unavailable: boolean,
  allow_no_indices: boolean,
  expand_wildcards: 'open' | 'closed' | 'none' | 'all'
})

Reference

index

string | string[] - A comma-separated list of indices to delete; use _all or * string to delete all indices

timeout

string - Explicit operation timeout

master_timeout or masterTimeout

string - Specify timeout for connection to master

ignore_unavailable or ignoreUnavailable

boolean - Ignore unavailable indexes (default: false)

allow_no_indices or allowNoIndices

boolean - Ignore if a wildcard expression resolves to no concrete indices (default: false)

expand_wildcards or expandWildcards

'open' | 'closed' | 'none' | 'all' - Whether wildcard expressions should get expanded to open or closed indices (default: open)
Default: open