POST
/v1/tools/delete_filefreeDelete 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
| Field | Type | Default | What it is |
|---|---|---|---|
file_id | string | Required |
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.