Delete user-managed service accounts
- DELETE /_security/service/{namespace}/{service}
Delete a service account from a namespace of your own.
Deleting an account that still has service tokens is rejected unless force is true.
A forced delete leaves the tokens behind: they cannot authenticate while no account of that name exists, and recreating the account is rejected until they are deleted.
Note
The elastic namespace is reserved for the built-in service accounts that ship with Elasticsearch.
A name that no user-managed service account could have is rejected rather than reported as not found.
The manage_service_account privilege does not authorize this API.
Required authorization
- Cluster privileges manage_security