The smsap repository delete command
This command deletes a repository used to store database profiles and associated credentials. You can delete a repository only if there are no profiles in the repository.
Syntax
smsap repository delete -repository -port repo_port -dbname repo_service_name -host repo_host -login -username repo_username [-force] [-noprompt] [-quiet | -verbose]
Parameters
-
-repositoryThe options that follow
-repositoryspecify the details of the database for the repository. -
-port repo_portSpecifies the TCP port number used to access the database that stores the repository.
-
-dbname repo_service_nameSpecifies the name of the database that stores the repository. Use either the global name or the SID.
-
-host repo_hostSpecifies the name or IP address of the host computer the repository database runs on.
-
-loginStarts the repository login details.
-
-username repo_usernameSpecifies the user name needed to access the database that stores the repository.
-
-forceAttempts to force the deletion of the repository, even if there are incomplete operations. SnapManager issues a prompt if there are incomplete operations, asking if you are sure you want to delete the repository.
-
-nopromptDoes not prompt you before deleting the repository. Using the
-nopromptoption ensures the prompt does not appear, making it easier to delete repositories using a script. -
-quietDisplays only error messages on the console. The default is to display error and warning messages.
-
-verboseDisplays error, warning, and informational messages on the console.
Command example
The following example deletes the repository in the SALESDB database.
smsap repository delete -repository -dbname SALESDB -host server1 -login -username admin -port 1527 -force -verbose