--destructive-mode is not available in `snapcraft clean`
Metadata
Current evaluation
⚠️ This summary may be outdated — the issue content or evaluation prompts have changed since this evaluation was made.
Closed without resolution. The snapcraft clean command lacks --destructive-mode support; users are advised to use SNAPCRAFT_BUILD_ENVIRONMENT=host as a workaround.
Suggested action: —
No scores available.
Issue body
Currently it is not possible to clean a snap project artifacts in --destructive-mode, when the `snapcraft clean --destructive-mode` command is called, it returns:
```
Error: no such option: --destructive-mode
```
## WORKAROUND ##
Use `SNAPCRAFT_BUILD_ENVIRONMENT=host snapcraft clean` instead.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Closed without resolution. The snapcraft clean command lacks --destructive-mode support; users are advised to use SNAPCRAFT_BUILD_ENVIRONMENT=host as a workaround. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without resolution or comments. The --destructive-mode flag for snapcraft clean was not fixed; the issue was abandoned, with the reporter providing a SNAPCRAFT_BUILD_ENVIRONMENT=host workaround instead. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed without resolution. The --destructive-mode flag remains unsupported for snapcraft clean. The SNAPCRAFT_BUILD_ENVIRONMENT=host environment variable is provided as a workaround. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1904913 Destructive mode not available | snapcraft (launchpad) | closed | Closed without resolution. The --destructive-mode flag error in snapcraft 4.4.2 was abandoned, with no comments, fixes, or follow-up actions recorded. | |
| #1791201 add support for --destructive-mode | snapcraft (launchpad) | closed | Closed without comments. The feature enabling host builds via --destructive-mode or SNAPCRAFT_BUILD_ENVIRONMENT=host was implemented or abandoned. | |
| #6001 `snapcraft clean --destructive` does not delete `.craft` directory | snapcraft | open | Bug report: `snapcraft clean --destructive` leaves the `.craft` directory behind after `snapcraft pack --destructive`. Reported by a maintainer with full reproduction steps on Snapcraft 8.13.2; no labels, no comments, no maintainer response in 213 days. |