Remove an InstantClone clone.
Remove-InstantCloneClone -CloneName <string> [-onlyData] [<CommonParameters>] |
This removes the clone database, backing-file and directory. The original snapshot is unaffacted. This should always be used to remove a clone - do not directly remove the cloned database in SQL Server.
-CloneName
<System.String>
The name of the clone you want to remove.
| Aliases | None |
| Required? | true |
| Position? | named |
| Default Value | None |
| Accept Pipeline Input | false |
| Accept Wildcard Characters | false |
-CloneId
<System.String>
The Id of the clone you want to remove.
| Aliases | None |
| Required? | true |
| Position? | named |
| Default Value | None |
| Accept Pipeline Input | false |
| Accept Wildcard Characters | false |
-All
<System.Management.Automation.SwitchParameter>
Remove all clones.
| Aliases | None |
| Required? | true |
| Position? | named |
| Default Value | False |
| Accept Pipeline Input | false |
| Accept Wildcard Characters | false |
-onlyData
<System.Management.Automation.SwitchParameter>
This removes the data, but not the SQL Server database. Use this switch if you've removed the SQL Server Database manually, and now need to remove the backing clone VHD and entry in the list of clones.
| Aliases | None |
| Required? | false |
| Position? | named |
| Default Value | False |
| Accept Pipeline Input | false |
| 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.
The output type is the type of the objects that the cmdlet emits.
|
This removes the clone AWClone4. The AWClone4 database is removed from your SQL Server and the backing data is removed. The snapshot, and the snapshot's original database, are unaffected.
|
If I remove the database AWClone8 via SSMS, then the associated InstantClone files are left. This is not a desirable state. This command removes the database and metadata, but does not require the AWClone8 database to still exist.
|
This removes all your clones.