> ## Documentation Index
> Fetch the complete documentation index at: https://docs.alex.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete a candidate

> Deletes a candidate and all their data, including a candidate deleted in your ATS. Use it to erase a candidate, for example for a GDPR request: find every candidate with the person's email or ATS id with `GET /candidates?include_deleted=true`, then delete each. An id with nothing to delete, including a candidate already erased, returns `404`: to retry a delete safely, send an `Idempotency-Key`.

## 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 /candidates?email=ada@example.com&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`.


## API Specification

The full API specification for this endpoint is available in the [documentation index](https://docs.alex.com/llms.txt).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.