Skip to main content
 print this page

Delete a file

DELETE 

/ai/playground/files

Deletes one file from S3 and the Files list. file_name is required. chat_id defaults to the user's global files (use global). project_id (not N/A) deletes from project files instead. Chat/global delete requires owner access. No request body.

Request

Responses

File removed from storage and metadata.

Response Headers
    Access-Control-Allow-Origin
    Access-Control-Allow-Methods
    Access-Control-Allow-Headers