< Back
Remove-GceInstanceTemplate
Post
NAME Remove-GceInstanceTemplate
SYNOPSIS
Deletes a Google Compute Engine instance templates.
SYNTAX
Remove-GceInstanceTemplate [-Project <string>] [-Name] <string> [<CommonParameters>]
Remove-GceInstanceTemplate [-Object] <InstanceTemplate> [<CommonParameters>]
DESCRIPTION
Deletes a Google Compute Engine instance templates. Templates referenced by managed instance groups can not be
deleted.
PARAMETERS
-Project <string>
The project that owns the template.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Name <string>
The name of the template to delete.
Required? true
Position? 0
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-Object <InstanceTemplate>
The instance tempate 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 template to delete.
Google.Apis.Compute.v1.Data.InstanceTemplate
The instance tempate object to delete.
OUTPUTS
---------- EXAMPLE 1 ----------
PS C:\\> Remove-GceInstanceTemplate "my-template"
Removes the instance template named "my-template" in the default project.
---------- EXAMPLE 2 ----------
PS C:\\> Get-GceInstanceTemplate | Remove-GceInstanceTemplate
Removes all instance templates in the default project.
RELATED LINKS
[Instance Template resource definition]
(https://cloud.google.com/compute/docs/r ... s#resource)
SYNOPSIS
Deletes a Google Compute Engine instance templates.
SYNTAX
Remove-GceInstanceTemplate [-Project <string>] [-Name] <string> [<CommonParameters>]
Remove-GceInstanceTemplate [-Object] <InstanceTemplate> [<CommonParameters>]
DESCRIPTION
Deletes a Google Compute Engine instance templates. Templates referenced by managed instance groups can not be
deleted.
PARAMETERS
-Project <string>
The project that owns the template.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Name <string>
The name of the template to delete.
Required? true
Position? 0
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-Object <InstanceTemplate>
The instance tempate 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 template to delete.
Google.Apis.Compute.v1.Data.InstanceTemplate
The instance tempate object to delete.
OUTPUTS
---------- EXAMPLE 1 ----------
PS C:\\> Remove-GceInstanceTemplate "my-template"
Removes the instance template named "my-template" in the default project.
---------- EXAMPLE 2 ----------
PS C:\\> Get-GceInstanceTemplate | Remove-GceInstanceTemplate
Removes all instance templates in the default project.
RELATED LINKS
[Instance Template resource definition]
(https://cloud.google.com/compute/docs/r ... s#resource)