Skip to main content
DELETE
cURL

Erasing a person

Deleting a candidate removes their records, interviews, recordings and résumés. It works on a candidate deleted in your ATS too. A person can have more than one candidate, for example one per ATS record. To erase everyone with an email address or ATS id:
  1. List them, including those deleted in your ATS: GET /[email protected]&include_deleted=true, or ?external_id=CAND-881&include_deleted=true. Follow next_cursor if has_more is true.
  2. Delete each by id.
The response’s cleanup_succeeded is false when the records were deleted but removing the candidate’s files could not be started. Contact support with the request_id: deleting again returns 404.

Authorizations

X-API-Key
string
header
required

Your company's API key, from Settings → Integrations in Alex. The earlier API's api-key header is accepted too; if you send both headers they must carry the same key.

Headers

Idempotency-Key
string

A unique value, 1 to 255 characters, that makes the request safe to retry. See Idempotency.

Required string length: 1 - 255

Path Parameters

id
string
required

The candidate's id.

Response

Deleted.

object
string
required

Always "candidate".

Allowed value: "candidate"
id
string
required

The deleted candidate's id.

Example:

"5d2c7a90-1f4e-4b6a-8c3d-9e0f1a2b3c4d"

deleted
boolean
required

Always true.

cleanup_succeeded
boolean
required

false when the candidate's records were deleted but removing their files, such as résumés and recordings, could not be started. Contact support with the request_id: deleting again returns 404.