Delete a variable
DELETE
/api/v4/projects/{id}/variables/{key}
Deletes a project variable. If there are multiple variables with the same key, use filter to select the correct environment_scope.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Query Parameters
Section titled “Query Parameters”filter
Available filters: [environment_scope]. Example: filter[environment_scope]=production
object
filter[environment_scope]
string
The environment scope of the variable
Responses
Section titled “Responses”OK
Media typeapplication/json
object
variable_type
string
key
string
value
string
hidden
boolean
protected
boolean
masked
boolean
raw
boolean
environment_scope
string
description
string
Example
{ "variable_type": "env_var", "key": "TEST_VARIABLE_1", "value": "TEST_1", "environment_scope": "*", "description": "This variable is being used for ..."}Bad Request
Variable Not Found