gceremoveimg(1)

NAME
gceremoveimg - Remove images in GCE

SYNOPSIS
gceremoveimg [option]

DESCRIPTION
gceremoveimg Remove an image in owned by the given GCE project. The image is permanently deleted.

OPTIONS

--all
    Deletes all images that match the criteria for image lookup. By default the tool will only delete an image if there is a singular match.

--confirm
    Require that each action be confirmed before the action is taken.

-c --credentials-file CONFIG_FILE
    Specifies the service account credentials to use. By default service account credentials are expected in ~/.config/gce. The crendentials file must match the given project name followed by the .json extension.

-n --dry-run
    Provide information about actions to be taken. Will not delete any images.

--image-name IMAGE_NAME
    Specify the name of the image to be removed. The program will look for an exact match of the name. This option is mutually exclusive with --image-name-frag, and --image-name-match.

--image-name-frag IMAGE_NAME_FRAGMENT
    Specify a section of an image name for the image(s) to be removed. Every image that matches the name fragment will be removed. This option is mutually exclusive with --image-name, and --image-name-match.

--image-name-match REGEX
    Specify a regular expression to match an image name. Every image matching the regular expression will be removed. This option is mutually exclusive with --image-name, and --image-name-frag.

-p --project PROJECT_NAME
    Specifies the project name to use to connect to GCE and used to search for the image to be removed.

--verbose
    Print extra output about the operations performed to STDOUT.

--version
    Print the version of he program

EXAMPLE
gceremoveimg --project example --image-name-match '.*v15.*' --all --verbose Will delete all images that match the .*v15.* regular expression in the image name. No confirmation of the delete operation is required by the user and progress will be written to STDOUT.

AUTHOR
SUSE Public Cloud Team (public-cloud-dev@susecloud.net)