> For the complete documentation index, see [llms.txt](https://til.devjugal.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://til.devjugal.com/docker/remove-unused-data.md).

# Remove Unused Data

`docker system prune` frees up storage by deleting unused data.

> Remove all unused containers, networks, images (both dangling and unreferenced), and optionally, volumes.

```bash
docker system prune

WARNING! This will remove:
        - all stopped containers
        - all networks not used by at least one container
        - all dangling images
        - all build cache
Are you sure you want to continue? [y/N] y
```
