Delete a data source
/v1/datasets/{datasetId}/sources/{sourceId}Permanently deletes a source together with all of its sync jobs and sync logs. The response tells you how many of each were removed.
Items the source previously imported into the dataset are left in place — delete or archive them through the Dataset Items endpoints if you no longer want them. A job that is currently processing is deleted from the queue, but the worker running it may still finish importing items from that pass; only the job and log records disappear.
Path parameters
2The dataset the source belongs to.
The source to delete.
Response
Always true on a 2xx response.
Number of sync logs removed with the source.
Number of sync jobs removed with the source.
Errors
18Every error is JSON with a single error string unless noted. Match on the status code; the message is for humans.
Data source not found or access deniedNo source with that sourceId belongs to the organization that owns the key, or the source belongs to a different datasetId than the path.
curl -X DELETE "https://stylor.ai/api/v1/datasets/YOUR_DATASET_ID/sources/YOUR_SOURCE_ID" \
-H "Authorization: Bearer $STYLOR_API_KEY"{
"success": true,
"deletedLogs": 42,
"deletedJobs": 3
}