Sources

Delete a source.

Changed on

Removes 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.

delete/api/v1/projects/{projectId}/sources/{sourceId}

Request

Path parameters

projectIdinteger required

The unique identifier of the agent (formerly known as project).

sourceIdinteger required

The unique identifier of a source.

Response

Agent source deleted successfully

status'error' | 'success'

The status of the response

Example response

{
  "status": "success",
  "data": {
    "deleted": true
  }
}

Changes

    • warning

      added the new 422.00 enum value to the / response property for the response status

    • warning

      added the new 422.00 enum value to the / response property for the response status

    • warning

      added the new 422.00 enum value to the / response property for the response status

    • warning

      added the new 422.00 enum value to the / response property for the response status

    • info

      added the non-success response with the status

    • warning

      added the new Agent id is required enum value to the / response property for the response status

    • warning

      added the new Agent with id {projectId} not found enum value to the / response property for the response status

    • info

      removed the Project id is required enum value from the / response property for the response status

    • info

      removed the Project with id {projectId} not found enum value from the / response property for the response status