API reference · Account
Delete a stored file
DELETE/api/studio/assets/{id}Signed in session
Its bytes leave the store once no other record names them. A 404 with code storage_off while stored media is switched off (ANTIMATTER_STUDIO_STORAGE). The signed in account; same origin only.
Parameters
| Field | Type | What it is |
|---|---|---|
| id (path)required | string | The stored file's id, sa_ followed by hex. |
Answer 200
Deleted.
| Field | Type | What it is |
|---|---|---|
| id | string | |
| object | string | |
| deleted | boolean |
Errors
- 401OpenAI shaped error.
- 403OpenAI shaped error.
- 404OpenAI shaped error.
- 429OpenAI shaped error.
Every error answers in one shape, with its type, code and the field it names. The whole list is in the docs' Errors section.