< Back

Remove-GceAddress

Mon Jan 13, 2020 11:35 pm

NAME Remove-GceAddress



SYNOPSIS

Removes a Google Compute Engine address.





SYNTAX

Remove-GceAddress [-Project <string>] [-Region <string>] [-Name] <string> [<CommonParameters>]



Remove-GceAddress [-Project <string>] [-Name] <string> -Global <SwitchParameter> [<CommonParameters>]



Remove-GceAddress [-Project <string>] [-Object] <Address> [<CommonParameters>]





DESCRIPTION

Removes a Google Compute Engine static external IP address.





PARAMETERS

-Project <string>

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



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Region <string>

The region the address is in. Defaults to the gcloud config region.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Name <string>

The name of the address to delete.



Required? true

Position? 0

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-Global <SwitchParameter>

If set, will delete a global address, rather than a region specific one.



Required? true

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-Object <Address>

The address object 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 address to delete.



Google.Apis.Compute.v1.Data.Address

The address object to delete.





OUTPUTS



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



Remove-GceAddress $addressName



Removes an address of the default project and region

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



Remove-GceAddress $addressName -Global



Removes a global address of the default project.

---------- EXAMPLE 3 ----------



Get-GceAddress | Remove-GceAddress



Removes all global and region specific addresses of the default project.



RELATED LINKS