curl --request POST \ --url https://{subdomain}.storage.{region}.nhost.run/v1/ops/delete-orphans \ --header 'X-Hasura-Admin-Secret: <api-key>'
Copy
Ask AI
{ "files": [ "<string>" ]}
Storage
deleteOrphanedFiles
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.
POST
/
ops
/
delete-orphans
Deletes orphaned files
Copy
Ask AI
curl --request POST \ --url https://{subdomain}.storage.{region}.nhost.run/v1/ops/delete-orphans \ --header 'X-Hasura-Admin-Secret: <api-key>'