---
title: "Delete an agent source."
method: DELETE
path: "/api/v1/projects/{projectId}/sources/{sourceId}"
tags: ["Sources"]
---

# Delete an agent source.

`DELETE /api/v1/projects/{projectId}/sources/{sourceId}`

Delete a source for a given agent.

## Path parameters

- `projectId` integer, required
- `sourceId` integer, required

## Response `200`

Agent source deleted successfully

- object
  - `status` 'error' | 'success' — The status of the response
  - `data` object
    - `deleted` boolean — Whether the agent source was deleted successfully or not

## Other responses

- `400` — Bad Argument
- `401` — API Token is either missing or invalid
- `404` — Agent not found
- `500` — Internal Server Error

---

[API](https://skmtc.net/poll-the-people/apis/customgpt-ai.md) · [All operations](https://skmtc.net/poll-the-people/apis/customgpt-ai/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/poll-the-people/customgpt-ai/revisions/b80e6dfcf78d/schema)
