DELETE /environments/{environment_id}
Delete an environment, by id or by name.
Always succeeds, even while agents still reference it — their next session start fails with a clear error naming the missing environment. Past sessions remain readable. Only for environments managed through this API — delete the file to remove one defined by a repository.
curl -X DELETE "https://api.ellipsis.dev/v1/environments/{environment_id}" \
-H "Authorization: Bearer $ELLIPSIS_API_KEY"import os
from ellipsis import Ellipsis
client = Ellipsis(api_key=os.environ["ELLIPSIS_API_TOKEN"])
result = client.environments.delete("...")
print(result)import { Ellipsis } from '@ellipsis-dev/sdk';
const client = new Ellipsis({
apiKey: process.env.ELLIPSIS_API_TOKEN!,
});
const result = await client.environments.delete('...');
console.log(result);Request
environment_idstringrequired