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.
- JavaScript
- Python
- curl
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)
}
})()
import requests
url = 'https://api.palenca.com/v1/accounts/:account_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/accounts/:account_id' \
--header 'X-API-Key: private_api_key'
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
Parameter | Description | Type | Required | Example |
---|---|---|---|---|
account_id | The ID of the account to be deleted | uuid | True | 91ffa55c-c33e-4b25-9213-5b5008e6d2f9 |