Skip to content

Remove a variable by name

DELETE/api/v1/deploy/services/{id}/env/{name}

Needs an API key in the Authorization header.

On this page

Parameters

FieldInTypeDescription
idrequiredpathstring
A service id, or project/service, or project/environment/service
namerequiredpathstring
  • pattern: ^[A-Za-z_][A-Za-z0-9_]*$
  • max length: 256
formatquerystring
text answers in plain text instead of JSON
  • one of: json, text
redeployquerystring
  • one of: 1, true, 0, false

Example request

curl -X DELETE "https://polaris.example.com/api/v1/deploy/services/{id}/env/{name}" \
  -H "Authorization: Bearer $POLARIS_API_KEY"

Responses

StatusMeaning
200OK

Can also answer the common errors 400, 401, 403, 404, 429. See common errors