Swagger Petstore - OpenAPI 3.0
DELETE/user/{username}

Delete a user account

Deletes a user identified by username. Supply username for the account to remove; only the authenticated user can perform this operation.

1 parameter
usernamestringrequired
The username of the user to delete.

4 status codes
200Confirms that the user identified by `username` was deleted.
400Returned when the supplied `username` is invalid.
404Returned when no user exists with the supplied `username`.
defaultUnexpected error

Error handling

A 400 is returned when username is invalid. A 404 is returned when no user exists with the supplied username. Confirm the username before submitting because deleting the account removes the user record.