Datasets
Delete dataset
Delete a dataset for good, every version of it: its rows, its original upload, and the copies its fine-tunes and prompt tuning kept. The fine-tunes, their models and their metrics stay. Work still reading it refuses the deletion. It can’t be undone, and deleting again changes nothing.
DELETE
/
v1
/
datasets
/
{dataset_id}
Delete dataset
curl --request DELETE \
--url https://api.sqwish.ai/v1/datasets/{dataset_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.sqwish.ai/v1/datasets/{dataset_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.sqwish.ai/v1/datasets/{dataset_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"deleted": true
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": [
{
"path": [
"<string>"
],
"message": "<string>",
"type": "<string>"
}
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": [
{
"path": [
"<string>"
],
"message": "<string>",
"type": "<string>"
}
]
}
}Delete dataset
curl --request DELETE \
--url https://api.sqwish.ai/v1/datasets/{dataset_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.sqwish.ai/v1/datasets/{dataset_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.sqwish.ai/v1/datasets/{dataset_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"deleted": true
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": [
{
"path": [
"<string>"
],
"message": "<string>",
"type": "<string>"
}
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": [
{
"path": [
"<string>"
],
"message": "<string>",
"type": "<string>"
}
]
}
}