Pular para o conteúdo principal

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.

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)
}
})()

Returns a JSON structured like this:

{
"success": true,
"error": null,
"data": {
"user_id": "b3a85798-fa4a-48dd-b624-0f0772d0052e",
"external_id": null
}
}

Query params

ParameterDescriptionTypeRequiredExample
user_idThe ID of the user to be deleteduuidTrue054d0a9d-38ec-40cb-a31c-09b483242e4a