Skip to content

Conversation

@realrajaryan
Copy link
Contributor

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

Motivation and Context

Adds a container volume prune command that removes volumes with no container references and reports the amount of disk space reclaimed. This helps users clean up unused volumes and easily reclaim disk space.

Also updates the volume delete documentation to clarify and highlight how the --all flag works.

Testing

  • Tested locally
  • Added/updated tests
  • Added/updated docs

@dcantah dcantah self-requested a review October 21, 2025 21:43
@realrajaryan realrajaryan force-pushed the users/realrajaryan/volume-prune branch from fe07508 to ffd3baa Compare October 21, 2025 22:08
@realrajaryan realrajaryan merged commit b4c3ebf into apple:main Oct 21, 2025
3 of 4 checks passed
saehejkang pushed a commit to saehejkang/container that referenced this pull request Oct 28, 2025
- Closes apple#508.

## Type of Change
- [ ] Bug fix
- [x] New feature  
- [ ] Breaking change
- [ ] Documentation update

## Motivation and Context
Adds a `container volume prune` command that removes volumes with no
container references and reports the amount of disk space reclaimed.
This helps users clean up unused volumes and easily reclaim disk space.

Also updates the `volume delete` documentation to clarify and highlight
how the `--all` flag works.

## Testing
- [x] Tested locally
- [x] Added/updated tests
- [x] Added/updated docs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Request]: Add volume rm --all, remove unreferenced volumes with volume prune.

2 participants