< Back

Remove-GceImage

Mon Jan 13, 2020 11:37 pm

NAME Remove-GceImage



SYNOPSIS

Removes a Google Compute Engine disk image.





SYNTAX

Remove-GceImage [-Project <string>] [-Name] <string> [<CommonParameters>]



Remove-GceImage [-Object] <Image> [<CommonParameters>]





DESCRIPTION

Removes a Google Compute Engine disk image.





PARAMETERS

-Project <string>

The project that owns the image. Defaults to the gcloud config project.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Name <string>

The name of the image to delete.



Required? true

Position? 0

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-Object <Image>

The Image object that describes the image to delete.



Required? true

Position? 0

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

System.String

The name of the image to delete.



Google.Apis.Compute.v1.Data.Image

The Image object that describes the image to delete.





OUTPUTS



---------- EXAMPLE 1 ----------



PS C:\\> Remove-GceImage "my-image"



Removes the image named "my-image" in the default project.

---------- EXAMPLE 2 ----------



PS C:\\> Get-GceImage -Project "my-project" | Remove-GceImage



Removes all images from project "my-project".



RELATED LINKS

[Image resource definition] (https://cloud.google.com/compute/docs/r ... s#resource)