Skip to main content
Prisma Documentation Docs

Search documentation

Type to search this documentation.

Delete an environment variable

DELETE/v1/environment-variables/{envVarId}Delete an environment variable

⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️

Removes an environment variable. A second delete of the same variable returns 404.

Parameters

envVarIdstringpathrequired

pattern ^(envvar_)?([cC][^\s-]{8,}|[a-z0-9]+)$

Responses

204Variable deleted.
401Missing or invalid authorization token.application/json
object
errorobjectrequired
Show child attributes
codestringrequired
hintstring
messagestringrequired
Example response
{
  "error": {
    "code": "string",
    "hint": "string",
    "message": "string"
  }
}
404Variable not found, or token does not have access to it.application/json
object
errorobjectrequired
Show child attributes
codestringrequired
hintstring
messagestringrequired
Example response
{
  "error": {
    "code": "string",
    "hint": "string",
    "message": "string"
  }
}
422Invalid request.application/json
object
errorobjectrequired
Show child attributes
codestringrequired
hintstring
messagestringrequired
Example response
{
  "error": {
    "code": "string",
    "hint": "string",
    "message": "string"
  }
}
Documentation menu