---
title: "Delete a file"
method: DELETE
path: "/service_agents/files/{id}"
tags: ["Service Agent"]
---

# Delete a file

`DELETE /service_agents/files/{id}`

Deletes a specific file by its ID.

## Path parameters

- `id` string, required

## Response `200`

File successfully deleted.

- StorageManagerFile
  - `id` string, uuid — The unique identifier of the file. Returned from the `POST /storage_files` or `GET /storage_files` response.
  - `customer_id` string, uuid — The unique identifier of the customer who owns this file. Returned from the `GET /customers` response.
  - `owner_type` string — Type of the resource owner (e.g., agent).
  - `owner_id` string, uuid — The unique identifier of the resource that owns this file (e.g., an agent or a call). Returned from the corresponding owner resource endpoint.
  - `reference_type` '' | 'normal' | 'recording' — The reference type of the file.
  - `reference_id` string, uuid — The unique identifier of the referenced resource. Returned from the corresponding resource endpoint.
  - `type` '' | 'rag' | 'talk' | 'recording' — The type/category of the file. Indicates the purpose of the uploaded file.
  - `name` string — The name of the file.
  - `detail` string — The details of the file.
  - `filename` string — The filename of the file.
  - `filesize` integer — The size of the file in bytes.
  - `uri_download` string — The URI for downloading the file.
  - `tm_download_expire` string, date-time — Timestamp when the download link expires.
  - `tm_create` string, date-time — The creation timestamp.
  - `tm_update` string, date-time — The last update timestamp.
  - `tm_delete` string, date-time — The deletion timestamp.

## Other responses

- `400` — Invalid request (INVALID_ARGUMENT).
- `401` — Authentication required (UNAUTHENTICATED).
- `403` — Insufficient permission (PERMISSION_DENIED).
- `404` — Resource not found (NOT_FOUND).
- `500` — Internal error (INTERNAL).

---

[API](https://skmtc.net/voipbin/apis/voipbin-api.md) · [All operations](https://skmtc.net/voipbin/apis/voipbin-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/voipbin/voipbin-api/versions/79e779080bcc/schema)
