fioctl targets prune
Prune Target(s)
Examples
# prune a single Target by name:
fioctl targets prune intel-corei7-64-lmp-123
# prune all Targets with the "custom.tags" set to ["devel"]:
fioctl targets prune --by-tag devel
# prune all Targets with the "custom.tags" set to ["devel"] except for the most recent 10:
fioctl targets prune --by-tag devel --keep-last=10
# prune all Targets with the "custom.tags" set to ["devel", "my-test"]:
fioctl targets prune --by-tag devel my-test
# see the list of Targets to be pruned (based on the above example), but don't prune them:
fioctl targets prune --by-tag devel my-test --dryrun
Options
--by-tag Prune all Targets by tags instead of name
--dryrun Only show what would be pruned
-h, --help help for prune
--keep-last int Keep the last X number of builds for a tag when pruning
--no-tail Don't tail output of CI Job
Options inherited from parent commands
-c, --config string config file (default is $HOME/.config/fioctl.yaml)
-f, --factory string Factory to list Targets for
-t, --token string API token from https://app.foundries.io/settings/tokens/
-v, --verbose Print verbose logging
SEE ALSO
- fioctl targets - Manage Factory TUF targets