These pages cover SQL Clone 1, which is not the latest version. Help for other versions is also available.
Starts deleting a clone.
Remove-SqlClone [-Clone] <CloneResource> [<CommonParameters>]
The Remove-SqlClone cmdlet starts deleting a clone and outputs details of the deletion operation.
This cmdlet returns a OperationResource which can be passed to the Wait-SqlCloneOperation cmdlet.
Connect-SqlClone must be called before this cmdlet.
-Clone
<RedGate.SqlClone.Client.Api.Objects.CloneResource>
Specifies the clone to delete. The Get-SqlClone cmdlet can be used to get a CloneResource.
| 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.
The input type is the type of the objects that you can pipe to the cmdlet.
Specifies the clone to delete. The Get-SqlClone cmdlet can be used to get a CloneResource.
The output type is the type of the objects that the cmdlet emits.
|
This example deletes the clone with the name 'CloneToDelete' on the SQL Server TESTMACHINE\SQL2014.
|
This example uses the pipeline to deletes an clones with the name 'CloneToDelete' and waits for the operation to finish before returning.
|
This example deletes all clones with the name prefix 'Dev-' and waits for the operations to complete.