This documentation supports the 9.1 to 9.1 Service Pack 3 version and its patches of BMC Atrium Core. The documentation for version 9.1.04 and its patches is available here.

To view the latest version, select the version from the Product version menu.

CMDBDeleteAttribute function

The CMDBDeleteAttribute function deletes the attribute with the specified ID. Depending on the value that you specify for the deleteOption parameter, the attribute is deleted immediately and is not returned to users who request information about attributes.


#include "ar.h"
#include "arextern.h"
#include "cmdb.h"

int CMDBDeleteAttribute(
      ARControlStruct *control,
      CMDBClassNameId classNameID,
      ARNameType attributeName,
      unsigned int deleteOption,
      ARStatusList *status)

Input arguments

Input argument



The control record for the operation, which contains information about the user requesting the operation and the server on which the operation is to be performed.


The name of the class from which you want to delete the attribute. The classNameID argument contains the namespace name and the unique class name.


The name of the attribute to delete.


Specifies the action to take if the specified attribute contains data:

  • 0: Do not delete the attribute (AR_ATTRIBUTE_CLEAN_DELETE ).
  • 1: Delete if the attribute contains data but not if it is inherited by subclasses (AR_ATTRIBUTE_DATA_DELETE ).
  • 2: Delete the attribute even if it has subclasses that are associated with it (AR_ATTRIBUTE_FORCE_DELETE ).

Return value

Return value



A list of zero or more notes, warnings, or errors generated from a call of this function.

Was this page helpful? Yes No Submitting... Thank you