The smo clone delete command
You can run the clone delete command to delete a clone. You cannot delete a clone if the clone is use by any operation.
Syntax
smo clone delete -profile profile_name \[-id guid \| -label clone_name\] [-login \[-username db_username -password db_password -port db_port\] \[-asminstance -asmusername asminstance_username -asmpassword asminstance_password\]] \[-syspassword syspassword\] -force \[-dump\] \[-quiet \| -verbose\]
Parameters
-
-profile profile_name
Specifies the name of the profile containing the clone being deleted. The profile contains the identifier of the database and other database information.
-
-force
Deletes the clone even if there are resources associated with the clone.
-
-id guid
Specifies the GUID for the clone being deleted. The GUID is generated by SnapManager when you create a clone. You can use the smo clone list command to display the GUID for each clone.
-
-label name
Specifies the label for the clone being deleted.
-
-asminstance
Specifies the credentials that are used to log in to the Automatic Storage Management (ASM) instance.
-
-asmusername asminstance_username
Specifies the user name used to log in to the ASM instance.
-
-asmpassword asminstance_password
Specifies the password used to log in to ASM instance.
-
-syspassword syspassword
Specifies the password for the sys privileged user.
You must provide the password for the sys privileged user if the database credentials provided are not the same for sys privileged user. -
-login
Allows you to enter the database login details.
-
-username db_username
Specifies the user name required to access the database.
-
-password db_password
Specifies the password required to access the database.
-
-port db_port
Specifies the TCP port number used to access the database that the profile describes.
-
-dump
Specifies to collect the dump files after the clone delete operation.
-
-quiet
Displays only error messages in the console. The default is to display error and warning messages.
-
-verbose
Displays error, warning, and informational messages in the console.
Example
The following example deletes the clone:
smo clone delete -profile SALES1 -label SALES_May Operation Id [8abc01ec0e79004b010e79006da60001] succeeded.