Disconnect a source
DELETE
/v1/sources/{source_id}
const url = 'https://api.pensievelabs.co/v1/sources/src_agent_trials';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://api.pensievelabs.co/v1/sources/src_agent_trials \ --header 'Authorization: Bearer <token>'Data already read stays in the models trained on it.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”source_id
required
string
Example
src_agent_trialsResponses
Section titled “Responses”The removed source.
Media typeapplication/json
object
id
required
string
object
required
string
deleted
required
Example
{ "deleted": true}default
Section titled “default”Something went wrong; error.type says what.
Media typeapplication/json
object
error
required
object
type
required
string
message
required
string
param
The request field the error is about.
string | null
request_id
required
string
Example
{ "error": { "type": "invalid_request" }}