< Back
Remove-GceDisk
Post
NAME Remove-GceDisk
SYNOPSIS
Deletes a Compute Engine disk.
SYNTAX
Remove-GceDisk [-Project <string>] [-Zone <string>] [-DiskName] <string> [<CommonParameters>]
Remove-GceDisk [-Object] <Disk> [<CommonParameters>]
DESCRIPTION
PARAMETERS
-Project <string>
The project to associate the new Compute Engine disk.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Zone <string>
Specific zone to create the disk in, e.g. "us-central1-a".
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-DiskName <string>
Name of the disk.
Required? true
Position? 0
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Object <Disk>
The Disk object that describes the disk to remove
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
Google.Apis.Compute.v1.Data.Disk
The Disk object that describes the disk to remove
OUTPUTS
---------- EXAMPLE 1 ----------
PS C:\\> Remove-GceDisk "my-disk"
Removes the disk in the default project and zone named "my-disk".
---------- EXAMPLE 2 ----------
PS C:\\> Get-GceDisk "my-disk" | Remove-GceDisk
Removes the disk in the default project and zone named "my-disk".
RELATED LINKS
[Disk resource definition] (https://cloud.google.com/compute/docs/r ... s#resource)
SYNOPSIS
Deletes a Compute Engine disk.
SYNTAX
Remove-GceDisk [-Project <string>] [-Zone <string>] [-DiskName] <string> [<CommonParameters>]
Remove-GceDisk [-Object] <Disk> [<CommonParameters>]
DESCRIPTION
PARAMETERS
-Project <string>
The project to associate the new Compute Engine disk.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Zone <string>
Specific zone to create the disk in, e.g. "us-central1-a".
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-DiskName <string>
Name of the disk.
Required? true
Position? 0
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Object <Disk>
The Disk object that describes the disk to remove
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
Google.Apis.Compute.v1.Data.Disk
The Disk object that describes the disk to remove
OUTPUTS
---------- EXAMPLE 1 ----------
PS C:\\> Remove-GceDisk "my-disk"
Removes the disk in the default project and zone named "my-disk".
---------- EXAMPLE 2 ----------
PS C:\\> Get-GceDisk "my-disk" | Remove-GceDisk
Removes the disk in the default project and zone named "my-disk".
RELATED LINKS
[Disk resource definition] (https://cloud.google.com/compute/docs/r ... s#resource)