#Files
1 messages · Page 1 of 1 (latest)
Hi @twilit shoal. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
You can delete files on the OpenAI platform using the OpenAI API. The endpoint for deleting a file is DELETE /files/{file_id}. The file_id is a required parameter and should be the ID of the file you want to delete.
Here is the API reference for deleting a file: OpenAI API - Files > Methods > deleteFile (https://platform.openai.com/docs/api-reference)
Please note that deleting a file from the Files area does not automatically remove them from the Assistants where they might be used/linked to. If you want to remove the association between an Assistant and a File, you need to delete the AssistantFile object. Deleting an AssistantFile doesn’t delete the original File object, it simply deletes the association between that File and the Assistant. You can find more information about this in the Creating Assistants Part 2 (https://platform.openai.com/docs/assistants/how-it-works) section of the OpenAI documentation.