Delete a user
Delete a user account.
DELETE https://petstore3.swagger.io/api/v3/user/{username}
Examples
- API Key
- OAuth 2.0
cURL
DELETE "https://petstore3.swagger.io/api/v3/user/user1" \
-H "api_key: <YOUR_API_KEY>"
cURL
DELETE "https://petstore3.swagger.io/api/v3/user/user1" \
-H "Authorization: Bearer <YOUR_OAUTH_TOKEN>"
Responses
| Code | Description |
|---|---|
| 200 | User deleted |
| 400 | Invalid username supplied |
| 404 | User not found |
A successful deletion returns a 200 code with no response body.
Parameters
Path parameters
| Name | Type | Description |
|---|---|---|
username | string | The username of the user to delete |