Delete an environment variable via API
This method allows you to delete an environment variable from a project.
URL
/projects/<permalink>/environment_variables/<id>
- Replace
<permalink>with the permalink of the project. - Replace
<id>with the identifier of the environment variable.
HTTP Method
DELETE
Example cURL request
curl -H "Content-type: application/json" \
-H "Accept: application/json" \
--user your-email@example.com:your-api-key \
-X DELETE \
https://your-account.deployhq.com/projects/your-project/environment_variables/125
Example response
A successful deletion returns a 204 No Content status with no response body.