---
title: "Delete file"
method: DELETE
path: "/partner/app/{appId}/bizai/agent_config/files/{fileId}"
tags: ["Knowledge — Files"]
---

# Delete file

`DELETE /partner/app/{appId}/bizai/agent_config/files/{fileId}`

## Request

- Base URL: `https://partner.gupshup.io`
- URL: `https://partner.gupshup.io/partner/app/{appId}/bizai/agent_config/files/{fileId}`
- Auth: API key in header `Authorization`

## Response `204`

File deleted.

## Other responses

- `400`: The id is not a pfbid. Rejected on format before any lookup.
- `401`: Missing, invalid, or foreign-app token. Raised by Partner Portal before any forwarding.
- `429`: Per-app rate limit exceeded. Retry after the 60-second window.

---

[API](https://skmtc.dev/gupshup/apis/partner-portal-meta-business-agent-bizai-api.md) - [All operations](https://skmtc.dev/gupshup/apis/partner-portal-meta-business-agent-bizai-api/llms.txt) - [OpenAPI document](https://skmtc.dev/gupshup/apis/partner-portal-meta-business-agent-bizai-api/revisions/4c52185f2153?raw)
