• Native OpenStack API

noa
  1. Help Center
  2. Native OpenStack API
  3. API Reference
  4. Keystone
  5. User
  6. Deleting a User

Deleting a User

Function Description

This interface is used to delete a user. This interface applies only to the global domain name iam.myhuaweicloud.com.This interface applies only to the domain name in Brazil region iam.sa-brazil-1.telefonicaopencloud.com.This interface applies only to domain names in the Global zone.

URI

  • URI format

    DELETE /v3/users/{user_id}

  • URI parameter description

    Parameter

    Mandatory

    Type

    Description

    user_id

    Yes

    String

    User ID.

Request

  • Request header parameter description

    Parameter

    Mandatory

    Type

    Description

    Content-Type

    Yes

    String

    Fill application/json;charset=utf8 in this field.

    X-Auth-Token

    Yes

    String

    Authenticated token with the Security Administrator permission.

  • Sample request
    curl -i -k -H 'Accept:application/json' -H 'Content-Type:application/json;charset=utf8' -H "X-Auth-Token:$token" -X DELETE https://172.30.48.86:31943/v3/users/2c1c6c54e59141b889c99e6fada5f19f

Response

  • Sample response (request successful)

    No response body.

  • Sample response (request failed)
    {
        "errorcode":["1107"]
    }

Status Codes

Status Code

Description

204

The user is deleted successfully.

400

The server failed to process the request.

401

You must enter a username and password to access the requested page.

403

You are forbidden to access the requested page.

404

The server could not find the requested page.

405

You are not allowed to use the method specified in the request.

413

The request entity is too large.

500

Failed to complete the request because of an internal service error.

503

Failed to complete the request because the service is unavailable.