CentraSite 10.5 | CentraSite Developer's Guide | Custom Reporting Searches | Writing Your Own Reporting Search | Deleting Custom Reporting Search through Command Line
 
Deleting Custom Reporting Search through Command Line
Pre-requisites:
To delete a custom reporting search through the CentraSite Command Line Interface, you must have the CentraSite Administrator role.
CentraSite provides a command tool named delete Search for this purpose.
*To delete a custom reporting search
*Run the command delete Search.
The syntax is of the format: C:\SoftwareAG\CentraSite\utilities>CentraSiteCommand.cmd delete search [-url <CENTRASITE-URL>] -user <USER-ID> -password <PASSWORD> [-savedSearch <SAVED-SEARCH>] [-scope <SCOPE>]
The input parameters are:
Parameter
Description
CENTRASITE-URL
(Optional). The URL of the CentraSite registry. For example, http://localhost:53307/CentraSite/CentraSite.
USER-ID
The user ID of a registered CentraSite user who has the CentraSite Administrator role. For example, Administrator.
PASSWORD
The password for the registered CentraSite user identified by the parameter USER-ID.
SAVED-SEARCH
Name of the saved search you want to delete.
SCOPE
Name of the folder that contains the saved search you want to delete.
The possible values are:
*global - List of saved searches that belong to the Default Organization.
*org - List of saved searches that belong to the logged-in user's organization.
*user - Default. List of saved searches that belong to the logged-in user.
Example (all in one line):
C:\SoftwareAG\CentraSite\utilities>CentraSiteCommand.cmd delete Search -url http://localhost:53307/CentraSite/CentraSite -user Administrator -password manage -savedSearch "My Saved Search" -scope org
The response to this command could be:
Executing the command : delete Search

Successfully executed the command : delete Search