# Delete a candidate

> Delete a candidate's resume and its read, at once and for good. Free.

Source: https://hyperjobs.io/docs/api-reference/candidates-delete

<EndpointHeader method="DELETE" path="/v1/candidates/{id}" />

The resume and everything read from it are deleted, here and at the service
that reads it, and the id is free to use again. Call it when one of your users
deletes their account or withdraws their resume. Free, and answered even when
the month's Match allowance is used up.

<CodeGroup>
```bash title="cURL"
curl -X DELETE -H "Authorization: Bearer $HYPERJOBS_KEY" \
  https://api.hyperjobs.io/v1/candidates/user_8812
```

```js title="Node"
const res = await fetch(`https://api.hyperjobs.io/v1/candidates/${encodeURIComponent(userId)}`, {
  method: "DELETE",
  headers: { Authorization: `Bearer ${process.env.HYPERJOBS_KEY}` },
});
// 204: deleted · 404: there was nothing to delete - both mean it's gone
```

```python title="Python"
import os, requests

requests.delete(f"https://api.hyperjobs.io/v1/candidates/{user_id}",
                headers={"Authorization": f"Bearer {os.environ['HYPERJOBS_KEY']}"}, timeout=30)
```
</CodeGroup>

## Path parameters

<Fields>
  <ParamField path="id" type="string" required>
    Your id for the candidate.
  </ParamField>
</Fields>

## Response

`204 No Content`, with no body.

A candidate nobody read or scored for **180 days** is deleted without being
asked; deleting your HyperJobs account deletes every candidate it keeps.

## Errors

| Status | Cause |
| --- | --- |
| `400` | A bad id, or a query parameter. |
| `401` | Missing, unknown, revoked, or expired key. |
| `404` | No candidate with this id. |
| `429` | [Rate limit](/docs/rate-limits) exceeded. |
| `503` | The reader is unavailable, so nothing was deleted; retry after `Retry-After`. |
