< Back
Remove-GceInstance
Post
NAME Remove-GceInstance
SYNOPSIS
Deletes a Google Compute Engine VM instance.
SYNTAX
Remove-GceInstance [-Project <string>] [-Zone <string>] [-Name] <string> [<CommonParameters>]
Remove-GceInstance [-Object] <Instance> [<CommonParameters>]
DESCRIPTION
Deletes a Google Compute Engine VM instance.
PARAMETERS
-Project <string>
The project that owns the instances.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Zone <string>
The zone in which the instance resides.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Name <string>
The name of the instance to delete.
Required? true
Position? 0
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-Object <Instance>
The instance 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 instance to delete.
Google.Apis.Compute.v1.Data.Instance
The instance object to delete.
OUTPUTS
---------- EXAMPLE 1 ----------
PS C:\\> Remove-GceInstance "my-instance"
Removes the instance named "my-instance" in the default project and zone.
---------- EXAMPLE 2 ----------
PS C:\\> Get-GceInstance -Project "my-project"|
where Status -eq Stopped |
Remove-GceInstance
Removes all instances in project "my-project" that are currently stopped.
RELATED LINKS
[Instance resource definition] (https://cloud.google.com/compute/docs/r ... s#resource)
SYNOPSIS
Deletes a Google Compute Engine VM instance.
SYNTAX
Remove-GceInstance [-Project <string>] [-Zone <string>] [-Name] <string> [<CommonParameters>]
Remove-GceInstance [-Object] <Instance> [<CommonParameters>]
DESCRIPTION
Deletes a Google Compute Engine VM instance.
PARAMETERS
-Project <string>
The project that owns the instances.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Zone <string>
The zone in which the instance resides.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Name <string>
The name of the instance to delete.
Required? true
Position? 0
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-Object <Instance>
The instance 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 instance to delete.
Google.Apis.Compute.v1.Data.Instance
The instance object to delete.
OUTPUTS
---------- EXAMPLE 1 ----------
PS C:\\> Remove-GceInstance "my-instance"
Removes the instance named "my-instance" in the default project and zone.
---------- EXAMPLE 2 ----------
PS C:\\> Get-GceInstance -Project "my-project"|
where Status -eq Stopped |
Remove-GceInstance
Removes all instances in project "my-project" that are currently stopped.
RELATED LINKS
[Instance resource definition] (https://cloud.google.com/compute/docs/r ... s#resource)