---
title: "Returns a list of deletion warnings for a file"
method: GET
path: "/dam/files/{file_id}/deletion-warnings"
tags: ["DAM: Files"]
---

# Returns a list of deletion warnings for a file

`GET /dam/files/{file_id}/deletion-warnings`

## Request

- Base URL: `https://api.kontainer.com/jsonapi/v2`
- URL: `https://api.kontainer.com/jsonapi/v2/dam/files/{file_id}/deletion-warnings`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/kontainer/apis/kontainer-api-documentation/docs/dam/files/:file_id/deletion-warnings/get.ts> (a function with typed inputs; its response is checked against the schema)

## Retrieve File Deletion Warnings
Endpoint for retrieving a list of deletion warnings for a file. The file has to be completed and may not be trashed, and the token user must have access to the file's original folder or a least one collection containing the file.

## Path parameters

- `file_id` string, required

## Response `200`

success

- FileDeletionWarningMeta
  - `meta` object: File Deletion Warning Meta
    - `file_id` string, required
    - `deletable` boolean, required
    - `used_in_pim` boolean, required
    - `has_cdn` boolean, required
    - `has_consent_agreements` boolean, required
    - `has_external_references` boolean, required

## Other responses

- `401`: Unauthorized

---

[API](https://skmtc.dev/kontainer/apis/kontainer-api-documentation.md) - [All operations](https://skmtc.dev/kontainer/apis/kontainer-api-documentation/llms.txt) - [OpenAPI document](https://skmtc.dev/kontainer/apis/kontainer-api-documentation/revisions/b80a5167e09a?raw)
