Skip to main content
DELETE /v1/deployments/:deployment_id
Stops the agent, tears down its container, and deletes the deployment. By default the persistent filesystem and memory are deleted with it.
Deletion is permanent. The agent’s workspace, memory, skills, and automations are destroyed unless you pass retain_filesystem=true.

Request

curl "https://api.prismagents.com/v1/deployments/dep_7xK9s2" \
  -X DELETE \
  -H "Authorization: Bearer $PRISM_API_KEY"

Path parameters

ParameterTypeRequiredDescription
deployment_idstringYesDeployment ID

Query parameters

ParameterTypeRequiredDescription
retain_filesystembooleanNoKeep a snapshot of the workspace for 30 days. Defaults to false

Response

{
  "deployment_id": "dep_7xK9s2",
  "status": "deleted"
}

Errors

StatusErrorWhen
401unauthorizedMissing or invalid API key
403forbiddenAPI key lacks deployments:write scope
404not_foundDeployment does not exist
See Errors for the full error reference.