Path parameters
-
Identifier for the user
Responses
-
User successfully deleted
Additional properties are allowed.
-
- The user cannot be deleted. (code:
user.restricted_deletion
) - External users cannot be modified. (code:
user.cannot_modify_external
) - Built-in users cannot be modified. (code:
user.cannot_modify
)
- The user cannot be deleted. (code:
-
User not found. (code:
user.not_found
)
DELETE /users/{user_name}
curl \
-X DELETE https://{{hostname}}/api/v1/users/{user_name}
Response examples (200)
{}
Response examples (400)
# Headers
x-cloud-error-codes: user.restricted_deletion
# Payload
{
"errors": [
{
"code": "string",
"message": "string",
"fields": [
"string"
]
}
]
}
Response examples (404)
# Headers
x-cloud-error-codes: user.not_found
# Payload
{
"errors": [
{
"code": "string",
"message": "string",
"fields": [
"string"
]
}
]
}