Skip to content

Delete Deployment

DELETE
/api/v1/deployments/{name}
curl --request DELETE \
--url https://aura.strangeworks.com/api/v1/deployments/example \
--header 'Authorization: Bearer <token>'

Delete a deployment: purge its files, tombstone the row, free the name.

Irreversible — see deployment_service.delete_deployment. Projects seeded from it keep their workspace and their recorded origin; the response reports how many there are rather than refusing on their behalf.

name
required
Name
string

Successful Response

Media typeapplication/json
DeploymentDeleteResponse

What the delete removed, and how many projects were seeded from it.

seeded_project_count is reported, not enforced: deletion proceeds regardless, since those projects own their copy of the workspace and only record the handle as frozen provenance.

object
files_deleted
required
Files Deleted
integer
handle
required
Handle
string
seeded_project_count
required
Seeded Project Count
integer
Examplegenerated
{
"files_deleted": 1,
"handle": "example",
"seeded_project_count": 1
}

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
ctx
Context
object
input
Input
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{
"detail": [
{
"ctx": {},
"input": "example",
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}