Delete User
This can only be done by the logged in user.
Request
URI
DELETE
https://petstore3.swagger.io/user/{username}
COPY
Path Parameters
string
username
Required
The name that needs to be deleted
Responses
200
User deleted
Operation doesn't return any data structure
400
Invalid username supplied
Operation doesn't return any data structure
404
User not found
Operation doesn't return any data structure
default
Unexpected error
Returns
Error
of type(s)
application/json
{
"code": "string",
"message": "string"
}
string
code
Required
code
string
message
Required
message
Code Samples
COPY
curl -X DELETE -H 'Authorization: <value>' https://{api_host}/user/{username}