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.
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
- Click the Remedyforce CMDB tab.
- 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 .
For example, to search for Email Service CI, you can type Email or Email Service in the Search text box and click . You can also search using data in the Instance ID, Instance Name, Description, Class Name, Asset #, 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.
- Click .
- In the confirmation dialog box, click Yes.
You can delete one or more CIs from the
Base Elementobject 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
- Navigate to the Developer Console.
- Click the text box next to the Execute button.
- 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]
- Click Execute.