Delete a source.
Changed onRemoves a data source and all its documents from an agent's knowledge base. Use this to disconnect content that's no longer relevant or to clean up after testing.
Notes: To delete individual documents without removing the entire source, use the Delete Document endpoint instead.
Warning: This deletes ALL documents from this source. The action cannot be undone.
Request
- Base URLhttps://app.customgpt.ai
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
The unique identifier of the agent (formerly known as project).
The unique identifier of a source.
Response
Agent source deleted successfully
Example response
{
"status": "success",
"data": {
"deleted": true
}
}Changes
- warning
added the new
422.00enum value to the/response property for the response status - warning
added the new
422.00enum value to the/response property for the response status - warning
added the new
422.00enum value to the/response property for the response status - warning
added the new
422.00enum value to the/response property for the response status - info
added the non-success response with the status
- warning
- warning
added the new
Agent id is requiredenum value to the/response property for the response status - warning
added the new
Agent with id {projectId} not foundenum value to the/response property for the response status - info
removed the
Project id is requiredenum value from the/response property for the response status - info
removed the
Project with id {projectId} not foundenum value from the/response property for the response status
- warning