← Back to issue list

Add option to clean all parts

View original Launchpad issue

Metadata

Project
snapcraft
Number
#1995365
Type
issue
State
open
Author
~rastersoft-gmail
Labels
Created
2022-11-01 11:31:40.386610+00:00
Updated
2022-11-01 11:31:40.386610+00:00
Closed

Current evaluation

Add a snapcraft clean flag to remove all build parts without destroying the container, enabling full rebuilds while preserving the environment. Open, untriaged, and inactive for over three years with no comments.

Suggested action: close stale

Reason: The issue is over 3.5 years old with zero comments or maintainer engagement, strongly indicating it is no longer relevant or has been superseded by newer project versions. While it is a straightforward feature request, the extreme inactivity and lack of prioritization warrant closing as stale.

Staleness: 95 Complexity: 15 Confidence: 85 Support Request: 10

Issue body

Currently, executing a "snapcraft clean" will destroy any container used to build a snap. There is the option of using "snapcraft clean PART_NAME", and that will just clean that part and rebuild it and any part that depends on it. Unfortunately, there is no way of cleaning all the parts to trigger a full rebuild without deleting the container and having to pull all the snaps and packages needed to build the container. So, it would be useful to add "snapcraft clean --parts-only" or "snapcraft clean --all-parts" to just clean all the parts but without destroying the container.

Evaluation history

Date Model Scores Action Summary
2026-06-19 06:11:58.316351+00:00 qwen3.6-35b-a3b-mtp-q6
Staleness: 95
Complexity: 15
Confidence: 85
Support Request: 10
close stale Add a snapcraft clean flag to remove all build parts without destroying the container, enabling full rebuilds while preserving the environment. Open, untriaged, and inactive for over three years with no comments.
2026-06-19 06:08:46.702841+00:00 pending