---
title: "DELETE files (with copies in different storages) from a storage folder, or a storage"
method: DELETE
path: "/v1/storages/{storage_id}/files/"
---

# DELETE files (with copies in different storages) from a storage folder, or a storage

`DELETE /v1/storages/{storage_id}/files/`

## Request

- Base URL: `https://app.iconik.io/API/files`
- URL: `https://app.iconik.io/API/files/v1/storages/{storage_id}/files/`
- Auth: none declared. Required headers: `App-ID`, `Auth-Token`
- TypeScript: <https://skmtc.dev/iconik/apis/iconik-files/docs/v1/storages/:storage_id/files/delete.ts> (a function with typed inputs; its response is checked against the schema)

Required roles:
 - can_read_storages
- can_delete_files

## Path parameters

- `storage_id` string, required

## Query parameters

- `path` string
- `path_separator` string
- `directory_path` string
- `checksum` string
- `id` string
- `name` string
- `type` string
- `status` string
- `date_created` string
- `date_modified` string
- `original_name` string
- `size` string
- `asset_id` string
- `format_id` string

## Headers

- `App-ID` string, required
- `Auth-Token` string, required

## Response `204`

Without body

## Other responses

- `400`: Bad request
- `401`: Token is invalid
- `404`: No files found
- `default`: Error response

---

[API](https://skmtc.dev/iconik/apis/iconik-files.md) - [All operations](https://skmtc.dev/iconik/apis/iconik-files/llms.txt) - [OpenAPI document](https://skmtc.dev/iconik/apis/iconik-files/revisions/ed57d13791a2?raw)
