feedback + updated examples + added links for h3 headings

Signed-off-by: sarahsanders-docker <sarah.sanders@docker.com>
This commit is contained in:
sarahsanders-docker
2025-04-22 12:14:51 -04:00
committed by Tonis Tiigi
parent 4dac5295a1
commit 23ce21c341
10 changed files with 300 additions and 58 deletions

View File

@@ -17,24 +17,32 @@ Remove build records
## Description
Remove one or more build records from the current builders history. You can
remove specific builds by name or ID, or delete all records at once using
remove specific builds by ID or offset, or delete all records at once using
the `--all` flag.
## Examples
### Remove a specific build
### <a name="remove-specific-build"></a> Remove a specific build
```console
docker buildx history rm mybuild
# Using a build ID
docker buildx history rm qu2gsuo8ejqrwdfii23xkkckt
# Or using a relative offset
docker buildx history rm ^1
```
### Remove multiple builds
### <a name="remove-multiple-builds"></a> Remove multiple builds
```console
docker buildx history rm mybuild frontend-build backend-build
# 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
### <a name="remove-all-build-records"></a> Remove all build records from the current builder
```console
docker buildx history rm --all