---
title: "Bulk delete files"
method: POST
path: "/v1/files/bulk-delete"
tags: ["Files"]
---

# Bulk delete files

`POST /v1/files/bulk-delete`

## Request

- Base URL: `https://filepost.dev` (the document declares no server; this is the origin it was published from)
- URL: `https://filepost.dev/v1/files/bulk-delete`
- Auth: none declared

Delete multiple files owned by the authenticated account. Available on Starter and Pro plans. Unknown or non-owned IDs are not deleted and are returned in not_deleted_file_ids.

## Headers

- `X-API-Key` string, nullable

## Request body

- BulkDeleteRequest
  - `file_ids` string[], required: FilePost file IDs to delete. Unknown or non-owned IDs are ignored and returned as not_deleted_file_ids.

## Response `200`

Successful Response

- BulkDeleteResponse
  - `deleted` boolean, required
  - `deleted_count` integer, required
  - `deleted_file_ids` string[], required
  - `not_deleted_file_ids` string[], required
  - `errors` object[], required
  - `db_error` string, nullable

## Other responses

- `422`: Validation Error

---

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