Bulk delete
Bulk delete deployments
Delete up to 1000 deployments. A live deployment stops first, then the server waits for its final bill to settle and deletes it. The work is durable: closing the client changes nothing.
POST
/
v1
/
deployments
/
bulk_delete
Bulk delete deployments
curl --request POST \
--url https://api.veri.studio/v1/deployments/bulk_delete \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"ids": [
"<string>"
],
"dry_run": true
}
'import requests
url = "https://api.veri.studio/v1/deployments/bulk_delete"
payload = {
"ids": ["<string>"],
"dry_run": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({ids: ['<string>'], dry_run: true})
};
fetch('https://api.veri.studio/v1/deployments/bulk_delete', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "<string>",
"resource": "<string>",
"dry_run": true,
"status": "<string>",
"counts": {
"total": 123,
"queued": 123,
"deleting": 123,
"deleted": 123,
"failed": 123,
"halted": 123,
"not_found": 123,
"already_queued": 123
},
"results": [
{
"id": "<string>",
"status": "<string>",
"code": "<string>",
"message": "<string>",
"blockers": [
{
"type": "<string>",
"id": "<string>",
"name": "<string>"
}
],
"blocker_total": 123
}
],
"id": "<string>"
}{
"object": "<string>",
"resource": "<string>",
"dry_run": true,
"status": "<string>",
"counts": {
"total": 123,
"queued": 123,
"deleting": 123,
"deleted": 123,
"failed": 123,
"halted": 123,
"not_found": 123,
"already_queued": 123
},
"results": [
{
"id": "<string>",
"status": "<string>",
"code": "<string>",
"message": "<string>",
"blockers": [
{
"type": "<string>",
"id": "<string>",
"name": "<string>"
}
],
"blocker_total": 123
}
],
"id": "<string>"
}Authorizations
Body
application/json
Response
Dry run: what would happen to each id; nothing was written
Bulk delete deployments
curl --request POST \
--url https://api.veri.studio/v1/deployments/bulk_delete \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"ids": [
"<string>"
],
"dry_run": true
}
'import requests
url = "https://api.veri.studio/v1/deployments/bulk_delete"
payload = {
"ids": ["<string>"],
"dry_run": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({ids: ['<string>'], dry_run: true})
};
fetch('https://api.veri.studio/v1/deployments/bulk_delete', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "<string>",
"resource": "<string>",
"dry_run": true,
"status": "<string>",
"counts": {
"total": 123,
"queued": 123,
"deleting": 123,
"deleted": 123,
"failed": 123,
"halted": 123,
"not_found": 123,
"already_queued": 123
},
"results": [
{
"id": "<string>",
"status": "<string>",
"code": "<string>",
"message": "<string>",
"blockers": [
{
"type": "<string>",
"id": "<string>",
"name": "<string>"
}
],
"blocker_total": 123
}
],
"id": "<string>"
}{
"object": "<string>",
"resource": "<string>",
"dry_run": true,
"status": "<string>",
"counts": {
"total": 123,
"queued": 123,
"deleting": 123,
"deleted": 123,
"failed": 123,
"halted": 123,
"not_found": 123,
"already_queued": 123
},
"results": [
{
"id": "<string>",
"status": "<string>",
"code": "<string>",
"message": "<string>",
"blockers": [
{
"type": "<string>",
"id": "<string>",
"name": "<string>"
}
],
"blocker_total": 123
}
],
"id": "<string>"
}
