Skip to main content

Delete Account - DELETE

To delete an account and all its associated data, you need to make a DELETE request to the endpoint

DELETE https://api.palenca.com/v1/accounts/:account_id

This request deletes all the personal and employment information Palenca retrieved for this account.

Warning

After calling this endpoint, the account and its data will be deleted from our databases. This cannot be undone under any circumstance.

const axios = require('axios')

const config = {
method: 'delete',
url: 'https://api.palenca.com/v1/accounts/:account_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": "1efb1ac1-2085-437d-aa8f-a8948cfdab80",
"account_id": "489db468-4937-4ab8-b6cc-47f420e88019"
}
}

Query params

ParameterDescriptionTypeRequiredExample
account_idThe ID of the account to be deleteduuidTrue91ffa55c-c33e-4b25-9213-5b5008e6d2f9