---
deprecated: true
search:
  tags:
    - Files
    - DELETE
seo:
  description: >-
    Permanently deletes a file from Cloudflare R2… Reference for the DELETE
    /api/v1/{team_slug}/{app_slug}/files/{file_id} endpoint in the Management
    API.
sidebar:
  label: Delete File
  badge: DELETE
title: Delete File
type: openapi-operation
---
Permanently deletes a file from Cloudflare R2 storage, removes all database records, translations, relationships with products, and clears CDN cache. Triggers product update events for all items that previously used this file.
Deprecated: use DELETE /api/v2/&#123;team_slug&#125;/&#123;app_slug&#125;/dam/files instead.

`DELETE /api/v1/{team_slug}/{app_slug}/files/{file_id}`

**Deprecated.**

**Responses**

- `200` — File deleted successfully
- `401` — Unauthorized access
- `404` — File not found
- `500` — Internal server error

Response example, 200:

```json
{
  "data": "string",
  "details": [
    "string"
  ],
  "success": true
}
```
