# Delete file knowledge

> Deletes an uploaded document from the team's knowledge library, for every line of the team. Documents are uploaded in the Allo app; this API lists and…

`DELETE /v2/api/numbers/{number}/agent/knowledge/files/{id}`

<Note>
**Required scope:** `AGENTS_WRITE`
</Note>

## Behavior

Deletes an uploaded document from your team's knowledge library. It is removed for every line of the team, not only this one. Returns `204` with no body.

Documents are uploaded in the Allo app, on the receptionist's knowledge screen. This API lists them under `knowledge.files` on [Get configuration](/docs/agent/get-agent) and deletes them.

## Errors

- `404 AGENT_KNOWLEDGE_NOT_FOUND`: this line does not use a document with that id. A website id sent here answers the same way.
- `404 PHONE_NUMBER_NOT_FOUND`: the number is not one you have access to.
