mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-05-18 00:47:48 +08:00
50 lines
1.2 KiB
Markdown
50 lines
1.2 KiB
Markdown
# docker buildx history rm
|
||
|
||
<!---MARKER_GEN_START-->
|
||
Remove build records
|
||
|
||
### Options
|
||
|
||
| Name | Type | Default | Description |
|
||
|:----------------|:---------|:--------|:-----------------------------------------|
|
||
| `--all` | `bool` | | Remove all build records |
|
||
| `--builder` | `string` | | Override the configured builder instance |
|
||
| `-D`, `--debug` | `bool` | | Enable debug logging |
|
||
|
||
|
||
<!---MARKER_GEN_END-->
|
||
|
||
## Description
|
||
|
||
Remove one or more build records from the current builder’s history. You can
|
||
remove specific builds by ID or offset, or delete all records at once using
|
||
the `--all` flag.
|
||
|
||
## Examples
|
||
|
||
### Remove a specific build
|
||
|
||
```console
|
||
# Using a build ID
|
||
docker buildx history rm qu2gsuo8ejqrwdfii23xkkckt
|
||
|
||
# Or using a relative offset
|
||
docker buildx history rm ^1
|
||
```
|
||
|
||
### Remove multiple builds
|
||
|
||
```console
|
||
# Using build IDs
|
||
docker buildx history rm qu2gsuo8ejqrwdfii23xkkckt qsiifiuf1ad9pa9qvppc0z1l3
|
||
|
||
# Or using relative offsets
|
||
docker buildx history rm ^1 ^2
|
||
```
|
||
|
||
### Remove all build records from the current builder
|
||
|
||
```console
|
||
docker buildx history rm --all
|
||
```
|