2018-11-29 01:52:56 -05:00
|
|
|
--
|
|
|
|
:api: delete-user
|
|
|
|
:request: DeleteUserRequest
|
|
|
|
:response: DeleteUserResponse
|
|
|
|
--
|
2019-09-11 16:19:13 -04:00
|
|
|
[role="xpack"]
|
2018-11-29 01:52:56 -05:00
|
|
|
[id="{upid}-{api}"]
|
|
|
|
=== Delete User API
|
|
|
|
|
|
|
|
[id="{upid}-{api}-request"]
|
|
|
|
==== Delete User Request
|
|
|
|
|
|
|
|
A user can be deleted as follows:
|
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
|
|
|
include-tagged::{doc-tests-file}[{api}-request]
|
|
|
|
--------------------------------------------------
|
|
|
|
|
|
|
|
[id="{upid}-{api}-response"]
|
|
|
|
==== Delete Response
|
|
|
|
|
|
|
|
The returned +{response}+ allows to retrieve information about the executed
|
|
|
|
operation as follows:
|
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
|
|
|
include-tagged::{doc-tests-file}[{api}-response]
|
|
|
|
--------------------------------------------------
|
|
|
|
<1> whether the given user was found
|
|
|
|
|
|
|
|
include::../execution.asciidoc[]
|