> For the complete documentation index, see [llms.txt](https://docs.aicrisk.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.aicrisk.com/server-admin/api-access/chat/deleting-a-file.md).

# Deleting a File

<figure><img src="/files/YQl3q4WvO9qJYJaWPW7o" alt=""><figcaption></figcaption></figure>

**Type:** DELETE

**End Point:** /api/Chat/DeleteFile/{agentid}/{fileId}

**Parameters:**&#x20;

* **agentid-string (path)**
  * *Description: ID of the agent*
* **fileId-string (path)**
  * *Description: ID of the file*
