Remove-SqlCloneTemplate
Published 01 May 2018
Deletes a clone templates of an image.
Syntax
Remove-SqlCloneTemplate [-CloneTemplate] <CloneTemplateResource> [<CommonParameters>]
Description
The Remove-SqlCloneTemplate cmdlet deletes a clone template of given image.
Connect-SqlClone must be called before this cmdlet.
Parameters
-CloneTemplate
<RedGate.SqlClone.Client.Api.Objects.CloneTemplateResource>
Specifies the clone template to delete. The Get-SqlCloneTemplate cmdlet can be used to get a CloneTemplateResource.
Aliases | None |
Required? | true |
Position? | 0 |
Default Value | None |
Accept Pipeline Input | true (ByValue) |
Accept Wildcard Characters | false |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see http://technet.microsoft.com/en-us/library/hh847884.aspx.
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
-
RedGate.SqlClone.Client.Api.Objects.CloneTemplateResource
Specifies the clone template to delete. The Get-SqlCloneTemplate cmdlet can be used to get a CloneTemplateResource.
Return values
The output type is the type of the objects that the cmdlet emits.
-
None.
You cannot pipe input to this cmdlet.
Examples
---------- EXAMPLE 1 ----------
Connect-SqlClone -ServerUrl 'http://sql-clone.example.com:14145' $Image = Get-SqlCloneImage -Name 'AdventureWorks-20170106110745' $CloneTemplate = Get-SqlCloneTemplate -Image $Image -Name 'MyCloneTemplat2'; Remove-SqlCloneTemplate -CloneTemplate $CloneTemplate
This example deletes the clone template named 'MyCloneTemplate' for the image named 'AdventureWorks-20170106110745'.