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 .
    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 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 .
  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.
Was this page helpful? Yes No Submitting... Thank you

Comments

  1. Heidi Misch

    When I go to the Dev Console and type in:

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

    I get "The query has to start with 'FIND' or 'SELECT'."

     

    Aug 24, 2015 10:27
    1. Masoom Parvez

      Hello Heidi,

      Thank you for your comment. I will discuss this with the concerned SME and get back to you on this ASAP.

      Thanks,
      Masoom

      Aug 25, 2015 06:06
      1. Heidi Misch

        Thank you, Masoom. I am trying to delete all the Demo CI Data. I assume I can also use DataLoader or Jitterbit to update BMCServiceDeskMarkAsDeleted_c =TRUE for all the CIs (BMCServiceDesk_BMC_BaseElementc) that I want to delete. And then run a Delete. But I guess I want to make sure I am using the best practice for deleting multiple CIs so I can feel confident that the data for those CIs stored in the subClasses, is also deleted.

        Aug 25, 2015 12:16