CentraSite Documentation : CentraSite Administrator’s Guide : Object Type Management : Viewing or Editing a Type : Removing an Attribute Using the Command Line Tool
Removing an Attribute Using the Command Line Tool
Note:  
When you remove an attribute from an asset type, keep the following in mind:
*If there are many existing instances, the remove operation can take some time to complete.
*You cannot remove a predefined attribute from a predefined asset type. You can, however, remove a custom (that is, user-defined) attribute from a predefined asset type.
There is a command line tool remove Attribute that allows you to remove an attribute from an asset type, in cases where existing instances of the type contain a value for the attribute. Using the tool, the attribute's value is automatically removed from all existing instances, then the attribute is removed from the type.
You can use the command line tool CentraSiteCommand.cmd (on Windows) or CentraSiteCommand.sh (on UNIX) of CentraSite. The command line tool is located in the directory <CentraSiteInstallDir>/utilities.
If you start the command line tool with no parameters, you receive a help text summarizing the required input parameters.
The parameters of the command are case-sensitive, so for example the parameter -url must be specified as shown and not as -URL.
If you omit the passwords from the command, you will be prompted to provide them.
Use the remove Attribute command to remove an attribute from the asset type definition in CentraSite.
The syntax for the command is:
C:\SoftwareAG\CentraSite\utilities>CentraSiteCommand.cmd remove Attribute [-url <CENTRASITE-URL>] -user <USER-ID> -password <PASSWORD> -assetType <ASSET-TYPE> [-attributeKind <ATTRIBUTE-KIND>] -attributeName <ATTRIBUTE-NAME>
The input parameters are:
Parameter
Description
-url
(Optional) The URL of the CentraSite registry. Default value is http://localhost:53307.
-user
The user ID of a registered CentraSite user. For example, a user who has the CentraSite Administrator role.
-password
The password for the registered CentraSite user identified by the parameter -user.
-assetType
The name of the asset type, in the format "{<namespace of the asset type>}SchemaName".
-attributeKind
A one-character code representing the type of the attribute you wish to remove. Allowable values are "C" for Classification, "R" for Relationship, "F" for File and "S" for all other attribute types. The use of the attributeKind parameter is optional. For more information about the various kinds of attributes, see What Is a Type?.
-attributeName
The name of the attribute schema for attributes whose AttributeKind is "S". For attributes with an AttributeKind other than "S" it is the name of the attribute itself.
Example:
C:\SoftwareAG\CentraSite\utilities>CentraSiteCommand.cmd remove Attribute -url http://localhost:53307/CentraSite/CentraSite -user Administrator -password manage -assetType {http://namespaces.CentraSite.com/Schema}XMLSchema -attributeKind S -attributeName test_String_Attribute
The response to this command could be:
Executing the command : remove Attribute
Successfully executed the command : remove Attribute
Copyright © 2005-2016 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback