curl -X DELETE "<base_url>/usermanagement/v1/users" \
-H "X-AccessToken: YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "userName=string&serviceName=rmd"
const res = await fetch("<base_url>/usermanagement/v1/users", {
method: "DELETE",
headers: {
"X-AccessToken": process.env.PUREWL_ACCESS_TOKEN,
"Content-Type": "application/x-www-form-urlencoded",
},
body: new URLSearchParams({ userName: "string", serviceName: "rmd" }),
});
const result = await res.json();
{
"header": {
"code": 1,
"message": "Account has been deleted successfully",
"response_code": 1
},
"body": {
"userName": "string"
}
}
User Management
Delete a User
Permanently delete a user from a service.
DELETE
/
usermanagement
/
v1
/
users
curl -X DELETE "<base_url>/usermanagement/v1/users" \
-H "X-AccessToken: YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "userName=string&serviceName=rmd"
const res = await fetch("<base_url>/usermanagement/v1/users", {
method: "DELETE",
headers: {
"X-AccessToken": process.env.PUREWL_ACCESS_TOKEN,
"Content-Type": "application/x-www-form-urlencoded",
},
body: new URLSearchParams({ userName: "string", serviceName: "rmd" }),
});
const result = await res.json();
{
"header": {
"code": 1,
"message": "Account has been deleted successfully",
"response_code": 1
},
"body": {
"userName": "string"
}
}
Send a live request to
DELETE /usermanagement/v1/users with Try it. See the full reference for the response fields and error codes: Delete a User.
Request Body
string
required
Username of the user to delete.
string
required
Service slug to delete the user from, e.g.
rmd.curl -X DELETE "<base_url>/usermanagement/v1/users" \
-H "X-AccessToken: YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "userName=string&serviceName=rmd"
const res = await fetch("<base_url>/usermanagement/v1/users", {
method: "DELETE",
headers: {
"X-AccessToken": process.env.PUREWL_ACCESS_TOKEN,
"Content-Type": "application/x-www-form-urlencoded",
},
body: new URLSearchParams({ userName: "string", serviceName: "rmd" }),
});
const result = await res.json();
{
"header": {
"code": 1,
"message": "Account has been deleted successfully",
"response_code": 1
},
"body": {
"userName": "string"
}
}