Sample - Swagger Petstore OpenAPI 3
DELETE/user/{username}

Delete a user

Deletes the user identified by username. Use this operation when the authenticated user needs to remove an existing user account. A successful response confirms that the user was deleted.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

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`.
defaultReturned when an unexpected error occurs.

Error handling

A 400 is returned when username is invalid. A 404 is returned when no user exists for the supplied username, so provide the username of an existing user.