---
title: "Deletes orphaned files"
method: POST
path: "/ops/delete-orphans"
tags: ["operations"]
---

# Deletes orphaned files

`POST /ops/delete-orphans`

Orphaned files are files that are present in the storage but have no associated metadata. This is an admin operation that requires the Hasura admin secret.

## Response `200`

Successfully deleted orphaned files

- object
  - `files` string[]

## Other responses

- `default` — En error occured

---

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