Scrub API
POST/v1/tools/delete_recordfree

Delete a person, company, deal or task

Deletes a person, company, deal or task by its id, free. It is kept 30 days and restore_record brings it back, links and all. Deleting a person keeps their deals and tasks; a company keeps its people and deals, without a company; a deal keeps its tasks.

Fields

FieldTypeDefaultWhat it is
recordstringRequiredIts id: pe_…, co_…, de_… or ta_…

Call it

Request

curl -X POST https://app.scrub.app/v1/tools/delete_record \
  -H "Authorization: Bearer $SCRUB_KEY" \
  -H "Content-Type: application/json" \
  -d '{"record":"…"}'

Answer

{
  "ok": true,
  "result": {
    "…": "…"
  }
}

What result holds is said above.

Every call can also answer an error: what comes back. Try it with your key from Account.