Skip to main content

Removing images

To remove a tagged image:

policy rm <registry>/<organization-name>/<repository-name>:<tag>

Options

-a, --all: when remote is set, remove all tags and the policy reference

-f, --force: don't ask for confirmation

Example

$ policy rm ghcr.io/ogazitt/peoplefinder:1.0.0

Removed reference.
reference: ghcr.io/ogazitt/peoplefinder:1.0.0