---
title: "Clean Exited Containers"
method: POST
path: "/docker/clean-exited-containers"
tags: ["Docker"]
---

# Clean Exited Containers

`POST /docker/clean-exited-containers`

Remove all exited (stopped) Docker containers.

Performs a bulk cleanup of all containers in the "exited" state. This frees up
disk space and cleans up the container list. This operation is irreversible -
container logs and state will be permanently deleted.

Warning: This removes ALL exited containers, not just Hummingbot containers.
For selective removal, use the remove-container endpoint instead.

Use this endpoint for periodic cleanup of old containers to free disk space
and reduce clutter in container listings.

## Response `200`

Successful Response

- unknown

## Changes

- **2025-12-20** `1005bcd47280` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/hummingbot/apis/hummingbot-api/changes/docker/clean-exited-containers/post.md)

---

[API](https://skmtc.dev/hummingbot/apis/hummingbot-api.md) · [All operations](https://skmtc.dev/hummingbot/apis/hummingbot-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/hummingbot/hummingbot-api/revisions/cb6b6935c8e2/schema)
