Destroying an account
When you run the destroy endpoint on an account, destruction happens immediately. This differs from running the destroy endpoint on a contact, where the actual destruction of data doesn’t happen until a scheduled batch process has run.
Use the following endpoint to destroy an account:
- POST
/account/v1/accounts/{accountId}/destroy
This example immediately removes account pc:987 from the database:
Command
POST /account/v1/accounts/pc:987/destroy
The request contains only the ID of the requester. The requester ID does not have to match the ID of a user in PolicyCenter.
Request
{
"data": {
"attributes": {
"requesterId": "5678"
}
}
}