TestingAPIs is still being built. If something breaks, email support@testingapis.com.

Delete a user

DELETEhttps://api.testingapis.com/api/xml/UserXML/delete/{id}Sign in to see this endpoint's URL

Deleting a seed user (101-104) returns the normal response but the seed stays.

Parameters 1

NameTypeDescription
idrequiredpath · integer (int32)User ID.

Responses

200
User deleted.
404
No user with that ID.

Example

Request
curl -X DELETE "https://api.testingapis.com/api/xml/UserXML/delete/1001" \
  -H "Accept: application/xml" \
  -H "X-TestingApis-Key: YOUR_API_KEY"
Response200 OK
Content-Type: application/xml; charset=utf-8

<Result xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><Message>User with ID 1001 deleted</Message></Result>

Sign in to see the details

The parameters, request and response examples and the live Try it panel for this endpoint are for signed-in members. Accounts are free and take a few seconds to create.