---
title: "Delete files by entity"
method: DELETE
path: "/files/v1/files?entityType&entityId"
tags: ["filesService"]
---

# Delete files by entity

`DELETE /files/v1/files?entityType&entityId`

Removes the multiple files bound to the entity

At the moment this is used internally to sync of files removal with posts

## Query parameters

- `entityType` 'comment' | 'post' | 'task'
- `entityId` integer, required

## Response `204`

No content

## Other responses

- `401` — Access token is missing or invalid

---

[API](https://skmtc.dev/uspacy/apis/uspacy-api-2.md) · [All operations](https://skmtc.dev/uspacy/apis/uspacy-api-2/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/uspacy/uspacy-api-2/revisions/c3f48fd1c26b/schema)
