DELETE
/user/{username}Delete a user account
Deletes the user account identified by a username. The authenticated user must supply username for the account to remove. A successful response confirms that the user was deleted.
usernamestringrequired
The username identifying the user to delete.
200Confirms that the user identified by
username was deleted successfully.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; use a username that identifies an existing account.