API Management 10.4 | Using CentraSite | Asset Management | Managing Assets through Command Line Interface | Deleting Assets
 
Deleting Assets
Pre-requisites:
To delete all the assets in CentraSite through the CentraSite Command Line Interface, you must have the CentraSite Administrator role.
If you are migrating a set of assets from CentraSite version 8.2 to version 9.7 or above, the promoted assets in the target organization cannot be deleted.
CentraSite provides a Java tool named CentraSiteDeleteAllAsset.jar for this purpose. This tool will delete all the assets from an organization in CentraSite.
Note: Before you run the tool, if there are assets of the Virtual Service type for deletion, make sure these assets are unpublished from the appropriate gateways.
* To delete assets
*Run the Java tool CentraSiteDeleteAllAsset.jar.
The syntax is of the format: C:\SoftwareAG\CentraSite\utilities>CentraSiteToolbox.cmd CentraSiteDeleteAllAsset.jar <arg1_CentraSite_DB_URL> <arg2_Administrator_User> <arg3_Administrator_User_Password> <arg4_AssetType> <arg5_OrganizationName> <arg6_OwnerName>
The input parameters are:
Parameter
Description
<arg1_CentraSite_DB_URL>
The URL of the CentraSite registry. For example, http://localhost:53307/CentraSite/CentraSite.
<arg2_Administrator_User>
The user ID of a registered CentraSite user who has the CentraSite Administrator role. For example, Administrator.
<arg3_Administrator_User_Password>
The password for the CentraSite user identified by the parameter <arg2_Administrator_User>.
<arg4_AssetType>
Type of asset you want to delete. For assets other than the Service type and its variants, you must specify the schema name and its namespace.
Example:
{http://namespaces.CentraSite.com/Schema}XMLSchema
<arg5_OrganizationName>
Name of the (target) organization whose assets you want to delete.
<arg6_OwnerName>
Name of the user who owns the assets you want to delete.
Examples (all in one line):
C:\SoftwareAG\CentraSite\utilities>CentraSiteToolbox.cmd CentraSiteDeleteAllAsset.jar http://localhost:53307/CentraSite/CentraSite DOMAIN\\admin pAsSw0rD "{http://namespaces.CentraSite.com/Schema}XMLSchema" "TARGET_SERVICE" "*"
C:\SoftwareAG\CentraSite\utilities>CentraSiteToolbox.cmd CentraSiteDeleteAllAsset.jar http://localhost:53307/CentraSite/CentraSite DOMAIN\\admin pAsSw0rD "Service" "TARGET_SERVICE" "*"

Copyright © 2015- 2019 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.
Innovation Release