Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
cURL
curl --request DELETE \ --url https://api.opper.ai/v3/files/{id} \ --header 'Authorization: Bearer <token>'
import requestsurl = "https://api.opper.ai/v3/files/{id}"headers = {"Authorization": "Bearer <token>"}response = requests.delete(url, headers=headers)print(response.text)
const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};fetch('https://api.opper.ai/v3/files/{id}', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
{ "deleted": true, "id": "<string>", "object": "<string>" }
{ "error": { "code": "<string>", "message": "<string>", "details": "<unknown>" }, "meta": {}}
Delete a file (removes the stored bytes).
API key authentication. Pass your API key as a Bearer token.
File ID (file_…)
Successful response