Users
Delete a user
Delete a user selected by username.
Deletes one user by username. The operation declares no security requirement.
Delete a user resource.
DELETE
/user/{username}Username to delete.
Response
{200}User deleted
{400}Invalid username supplied
{404}User not found
cURL
curl --request DELETE \ --url https://petstore3.swagger.io/api/v3/user/theUser
No response body is defined by the OpenAPI contract.
This operation removes data. Confirm the username before sending the request.
Although the description refers to a logged-in user, no operation-level security scheme is declared. The contract also defines a default Unexpected error response without a fixed status or body schema.