---
title: "DELETE /agents/{agentId}/knowledge/media/{mediaId}"
method: DELETE
path: "/agents/{agentId}/knowledge/media/{mediaId}"
tags: ["Agent"]
---

# DELETE /agents/{agentId}/knowledge/media/{mediaId}

`DELETE /agents/{agentId}/knowledge/media/{mediaId}`

## Request

- Base URL: `https://www.taskade.com/api/v1`
- URL: `https://www.taskade.com/api/v1/agents/{agentId}/knowledge/media/{mediaId}`
- Auth: OAuth 2 and HTTP bearer
  - Authorization code: `https://www.taskade.com/oauth2/authorize`
  - Token URL: `https://www.taskade.com/oauth2/token`

Remove a knowledge media

## Path parameters

- `agentId` string, required
- `mediaId` string, required

## Response `200`

Media knowledge removed

- object: Media knowledge removed
  - `ok` true, required

## Other responses

- `4XX`: Error description

---

[API](https://skmtc.dev/taskade/apis/taskade-public-api-v1.md) - [All operations](https://skmtc.dev/taskade/apis/taskade-public-api-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/taskade/apis/taskade-public-api-v1/revisions/55e17fe72d22?raw)
