Delete a file
Deletes a file owned by the requesting workspace. Deletion is irreversible.
Path parameters
Query parameters
Workspace to scope the request to. Defaults to the caller’s default workspace.
Workspace to scope the request to. Defaults to the caller’s default workspace.
Store or read this file on the named provider using your own API key for it. Omit to use OpenRouter storage.
Store or read this file on the named provider using your own API key for it. Omit to use OpenRouter storage.
Response
The file was deleted.
Example response
{
"_shape": "openrouter",
"id": "or_file_011CNha8iCJcU1wXNR6q4V8w",
"type": "file_deleted"
}Changes
Changed in 2 of the 303 revisions of this API.615
- ▲
for the
pathrequest parameterfile_id, the minLength was increased from0to1request-parameter-min-length-increased
- ▲
added the pattern
^[\w-]+$to thepathrequest parameterfile_idrequest-parameter-pattern-added
- ●
for the
pathrequest parameterfile_id, the maxLength was set to256request-parameter-max-length-set
- ▲
- ▲
added to the response body
oneOflist for the response statusresponse-body-one-of-added
- ▲
the response's body type changed from
objectto no type for statusresponse-body-type-changed
- ▲
removed the required property
from the response with the statusresponse-required-property-removed
- ▲
removed the required property
from the response with the statusresponse-required-property-removed
- ○
added the new optional
queryrequest parameterprovidernew-optional-request-parameter
- ○
added response discriminator for the response status
response-body-discriminator-added
- ○
added the non-success response with the status
response-non-success-status-added
- ○
added the non-success response with the status
response-non-success-status-added
- ○
added the non-success response with the status
response-non-success-status-added
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲