Returns
error only; nil on success.
Errors
*NotFoundError
*NotFoundError
The index doesn’t exist, for example because it was already deleted (HTTP
404).*AuthenticationError
*AuthenticationError
The
apiKey is invalid (HTTP 401), or the client is using a per-user key: deleting an index requires the root key (HTTP 403).*ServiceError / *TransportError
*ServiceError / *TransportError
The service returns
5xx or can’t be reached.