Skip to main content
Requests teardown and queues environment cleanup. Cleanup is asynchronous: a successful response does not necessarily mean the environment has been removed. You can request teardown while the run is ready, provisioning, queued, failed, or already tearing_down. Repeating the request reuses active cleanup work. If the run is already torn_down or expired, the endpoint returns that status. Path parameters Response
Poll the status endpoint until status is torn_down to confirm cleanup. expired indicates that the run’s expiration deadline has passed; it is not cleanup confirmation. See troubleshooting for bounded polling and CI cleanup guidance. Errors