Delete a specific environment by id
curl --request DELETE \
--url https://api.rootly.com/v1/environments/{id} \
--header 'Authorization: Bearer <token>'
{
"data": {
"id": "a58cd04f-69e0-4225-8f75-56914b756c77",
"type": "environments",
"attributes": {
"slug": "id-aut-placeat-commodi",
"name": "Id aut placeat commodi.",
"description": "Veniam magnam aliquid et.",
"color": "#d2d25b",
"position": 1,
"notify_emails": [],
"slack_channels": [],
"slack_aliases": [],
"created_at": "2025-08-01T13:25:08.396-07:00",
"updated_at": "2025-08-01T13:25:11.635-07:00"
}
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
environment deleted
The response is of type object
.
Was this page helpful?
curl --request DELETE \
--url https://api.rootly.com/v1/environments/{id} \
--header 'Authorization: Bearer <token>'
{
"data": {
"id": "a58cd04f-69e0-4225-8f75-56914b756c77",
"type": "environments",
"attributes": {
"slug": "id-aut-placeat-commodi",
"name": "Id aut placeat commodi.",
"description": "Veniam magnam aliquid et.",
"color": "#d2d25b",
"position": 1,
"notify_emails": [],
"slack_channels": [],
"slack_aliases": [],
"created_at": "2025-08-01T13:25:08.396-07:00",
"updated_at": "2025-08-01T13:25:11.635-07:00"
}
}
}