Apps

Delete an environment variable

Removes one environment variable's value from the given environment (pass ?target=production|preview|development; omit to remove from all). Deleting a value that does not exist succeeds with requiresRedeploy=false. When a value is removed, changes apply on the next deployment; trigger a redeploy to make them live.

delete/api/v1/apps/{appId}/env/{key}

Request

  • Base URL
    https://app.khotan.com
  • URL
    https://app.khotan.com/api/v1/apps/{appId}/env/{key}
  • Auth
    • HTTP bearer
    • or API key in header x-api-key

Path parameters

appIdstring required
keystring required

Query parameters

target'production' | 'preview' | 'development'

Response

The variable was removed (requiresRedeploy=true) or did not exist (requiresRedeploy=false).

requiresRedeployboolean required

Changes

No recorded changes to this operation across all 1 revision of this API.