---
title: "Delete a resource (file or directory)"
method: DELETE
path: "/resources/"
tags: ["Resources"]
---

# Delete a resource (file or directory)

`DELETE /resources/`

## Query parameters

- `path` string
- `paths[]` string[]

## Response `200`

OK

- object
  - `data` object
    - `items` ModelsResourceEntry[]
      - `created_at` string
      - `id` integer
      - `is_dir` boolean
      - `name` string
      - `path` string
      - `size` integer
      - `updated_at` string
      - `user_id` integer
    - `total` integer
  - `status` string

## Other responses

- `400` — Bad Request
- `403` — Forbidden
- `404` — Not Found
- `500` — Internal Server Error

## Changes

- **2026-05-04** `9f56c76dac04` — 2 info
  - added the new optional `query` request parameter `paths[]`
  - the `query` request parameter `path` became optional
- **2026-04-28** `d78a110a89ae` — 1 info
  - endpoint added
- **2026-03-26** `fe95938acc20` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/vxcontrol/apis/pentagi-swagger-api/changes/resources/delete.md)

---

[API](https://skmtc.dev/vxcontrol/apis/pentagi-swagger-api.md) · [All operations](https://skmtc.dev/vxcontrol/apis/pentagi-swagger-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/vxcontrol/pentagi-swagger-api/revisions/7c1cbf7abaa1/schema)
