Delete User - DELETE
To delete a user, you need to make a DELETE
request to the endpoint
DELETE https://api.palenca.com/v1/users/:user_id
This request deletes all the information available —accounts, profile, and earnings — belonging to a specific user.
Warning
After calling this endpoint, the user's information is deleted from our database. If you regret this decision, you must create a new user. Bear in mind you will get a new user_id.
- JavaScript
- Python
- curl
const axios = require('axios')
const config = {
method: 'delete',
url: 'https://api.palenca.com/v1/users/:user_id',
headers: {
'x-api-key': 'private_api_key',
'Content-Type': 'application/json'
}
};
(() => {
try {
const { data } = await axios(config)
console.info(JSON.stringify(response.data))
} catch (error) {
console.error(error)
}
})()
import requests
url = 'https://api.palenca.com/v1/users/:user_id'
headers = {
'x-api-key': 'private_api_key',
'Content-Type': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
curl --location --request DELETE 'https://api.palenca.com/v1/users/:user_id' \
--header 'x-api-key: your_private_api_key'
Returns a JSON structured like this:
{
"success": true,
"error": null,
"data": {
"user_id": "b3a85798-fa4a-48dd-b624-0f0772d0052e",
"external_id": null
}
}
Query params
Parameter | Description | Type | Required | Example |
---|---|---|---|---|
user_id | The ID of the user to be deleted | uuid | True | 054d0a9d-38ec-40cb-a31c-09b483242e4a |