Scrub API
POST/v1/tools/delete_filefree

Delete a file

Deletes a file from this workspace straight away, freeing its room; identical copies go with it. The jobs and receipts stay. It cannot be undone. A file a running job is reading is not deleted.

Fields

FieldTypeDefaultWhat it is
file_idstringRequired

Call it

Request

curl -X POST https://app.scrub.app/v1/tools/delete_file \
  -H "Authorization: Bearer $SCRUB_KEY" \
  -H "Content-Type: application/json" \
  -d '{"file_id":"w/…/file_id"}'

Answer

{
  "ok": true,
  "result": {
    "…": "…"
  }
}

What result holds is said above.

Every call can also answer an error: what comes back. Try it with your key from Account.