Skip to main content
DELETE
/
api
/
v2
/
environments
/
{id}
Delete an environment
curl --request DELETE \
  --url https://agp.eu.hcompany.ai/api/v2/environments/{id} \
  --header 'Authorization: Bearer <token>'
Removes an environment from your catalog. Sessions already running are unaffected; new sessions and agents can no longer reference it by id. Returns 204 No Content on success.

Path parameters

id
string
required
The environment’s id (e.g. wide-browser or myorg/wide-browser). Slash-containing identifiers are supported.

Examples

curl -X DELETE https://agp.eu.hcompany.ai/api/v2/environments/wide-browser \
  -H "Authorization: Bearer $H_API_KEY"

Errors

StatusCause
403The environment is reserved (h/) and you are not an H employee.
404Environment not found or you don’t have access.