Delete source
curl --request DELETE \
--url https://woes.dev/api/v1/sources/{sourceId} \
--header 'Authorization: Bearer <token>'const url = 'https://woes.dev/api/v1/sources/{sourceId}';
const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));import requests
url = "https://woes.dev/api/v1/sources/{sourceId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://woes.dev/api/v1/sources/{sourceId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"deleted": true,
"id": "<string>",
"object": "source"
}{
"code": "unauthorized",
"error": "A valid workspace API key is required."
}{
"code": "insufficient_scope",
"error": "This API key is missing the required scope."
}{
"code": "not_found",
"error": "Record not found."
}{
"code": "rate_limited",
"error": "Too many API requests. Slow down and try again shortly."
}{
"code": "internal_error",
"error": "The API request could not be completed."
}Delete source
Deletes one source from the API key workspace and marks default-agent context stale for resync.
DELETE
https://woes.dev
/
api
/
v1
/
sources
/
{sourceId}
Delete source
curl --request DELETE \
--url https://woes.dev/api/v1/sources/{sourceId} \
--header 'Authorization: Bearer <token>'const url = 'https://woes.dev/api/v1/sources/{sourceId}';
const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));import requests
url = "https://woes.dev/api/v1/sources/{sourceId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://woes.dev/api/v1/sources/{sourceId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"deleted": true,
"id": "<string>",
"object": "source"
}{
"code": "unauthorized",
"error": "A valid workspace API key is required."
}{
"code": "insufficient_scope",
"error": "This API key is missing the required scope."
}{
"code": "not_found",
"error": "Record not found."
}{
"code": "rate_limited",
"error": "Too many API requests. Slow down and try again shortly."
}{
"code": "internal_error",
"error": "The API request could not be completed."
}Authorizations
Workspace API key that starts with woesk_. Paste your own key into the docs playground; never expose it in browser code.
Path Parameters
Workspace API source id.
Last modified on July 4, 2026
Was this page helpful?
