---
title: "Delete attachment."
method: DELETE
path: "/candidates/attachments/{attachmentId}"
tags: ["candidates"]
---

# Delete attachment.

`DELETE /candidates/attachments/{attachmentId}`

## Request

- Base URL: `https://api.smartrecruiters.com`
- URL: `https://api.smartrecruiters.com/candidates/attachments/{attachmentId}`
- Auth: one of:
  - API key in header `x-smarttoken`
  - OAuth 2
    - Authorization code: `https://www.smartrecruiters.com/identity/oauth/allow`
    - Token URL: `https://api.smartrecruiters.com/identity/oauth/token` scopes: `candidates_manage`

Delete attachment.

## Response `204`

Attachment successfully deleted

## Other responses

- `403`: with code **PERMISSION_DENIED** when you are not permitted to delete attachment.
- `404`: with code **FILE_NOT_FOUND** when attachment does not exist.

---

[API](https://skmtc.dev/smartrecruiters/apis/candidates-api.md) - [All operations](https://skmtc.dev/smartrecruiters/apis/candidates-api/llms.txt) - [OpenAPI document](https://skmtc.dev/smartrecruiters/apis/candidates-api/revisions/8fde9b33d46d?raw)
