Note This documentation supports the 20.15.02 version of BMC Remedyforce.To view the latest or an earlier version, select the version from the Product version menu.

Deleting configuration items


If you have CIs that are no longer being used or you are discarding them, such as old hardware, you can delete these CIs to ensure that you have an accurate representation of the CIs in your IT environment. When you delete a CI from the database, all relationships associated with that CI are also deleted.

Note

If you do not have the Create, Edit, and Delete permissions on the class of a CI, you cannot create, edit, or delete the CI. The New and Save toolbar buttons are disabled if you do not have these permissions.

To delete a configuration item

  1. Click the Remedyforce CMDB tab.
  2. In the right pane of the CMDB Manager, select the CI that you want to delete.
     To search for a CI, type initial characters of the name of the CI or the full name of the class name in the Search text box and click search_icon.gif.
    For example, to search for Email Service CI, you can type Email or Email Service in the Search text box and click search_icon.gif. You can also search using data in the Instance IDInstance NameDescriptionClass NameAsset #Token ID, and Serial # fields. If you select a class in the left pane, only the CIs of that class are searched. To search all classes, select the Base Element class in the left pane.
  3. Click CMDBdelete_icon.gif.
  4. In the confirmation dialog box, click Yes.

    You can delete one or more CIs from the Base Element object of the CMDB by using Salesforce Object Query Language (SOQL) query, Salesforce page layout, the data loader, or the Pentaho Data Integration tool. 
    When you delete a CI, the CI relationships, CI client links, and CI tasks links are also deleted.

To delete configuration items by using the Developer Console

  1. Navigate to the Developer Console.
  2. Click the text box next to the Execute button.
  3. Enter a script to delete the CIs. BMC recommends that the batch size for the query should be 50.
     For example, to delete CIs from Base Element of a specific class, use the following script:

    Delete [Select ID From BMCServiceDesk_BMC_BaseElementc where BMCServiceDeskclassName_c ='BMC_ComputerSystem' Limit 50]

     To delete CIs from the Base Element class that are marked to be deleted, use the following script:

    Delete [Select ID From BMCServiceDesk_BMC_BaseElementc where BMCServiceDeskMarkAsDeleted_c =TRUE Limit 50]
  4. Click Execute.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*