---
sourceDocument: Brazil IT Operations Management
sourceDocumentLink: https://www.servicenow.com/docs/r/it-operations-management

 Release :

    - brazil

ft:locale :

    - en-US

ft:publication_title :

    - Brazil IT Operations Management

ft:clusterId :

    - itom

bundleId :

    - itom

workflow :

    - Technology


---

# Delete demo data

# Delete Digital Experience Score demo data {#ariaid-title1}

Release version: Brazil  
Updated September 10, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read  
Delete the demo data for Digital Experience Score when you no longer need it.

## Before you begin

Role required: admin

## Procedure

1. Navigate to AllSystem DefinitionScheduled Jobs.
2. Find and open the DeleteAggregatedDemoDataDexScore scheduled job.
3. Select Execute Now.  
   The job runs in the background.
4. Verify the completion status of the scheduled job.
   1. Access the Pending Scheduled Jobs and Running Scheduled Jobs tables.  
      * Pending Scheduled Jobs: Navigate to AllSystem DiagnosticsPending Scheduled Jobs.
      * Running Scheduled Jobs: Navigate to AllSystem DiagnosticsRunning Scheduled Jobs.
      {#dexscr-delete-demo-data__ul_pkp_wdn_cfc}
   2. Verify that the DeleteAggregatedDemoDataDexScore job isn't listed in either of the tables.
   {#dexscr-delete-demo-data__substeps_okp_wdn_cfc}
5. Navigate back to the scheduled jobs list.
6. Find and open the DeleteDemoDataDexScore scheduled job.
7. Select Execute Now.  
   The job runs in the background.
8. Verify that the DeleteDemoDataDexScore job isn't listed in the Pending Scheduled Jobs and Running Scheduled Jobs tables.
9. Delete records that are in the global scope.
   1. Navigate to AllSystem DefinitionScripts - Background.
   2. Enter the deletion script in the Run script (JavaScript executed on server) field.  

          var prefix = "[DEXScore Demo]";
                 //Deleting computer records
                 var comp = new GlideRecord('cmdb_ci_computer');
                comp.addEncodedQuery('nameSTARTSWITH' + prefix);
                 comp.query();
                 comp.deleteMultiple();
                 //Deleting User Records
                 var userGR = new GlideRecord("sys_user");
                userGR.addEncodedQuery('nameSTARTSWITH' + prefix);
                 userGR.query();
                 userGR.deleteMultiple();
                 //Deleting CMN Location Records
                 var location = new GlideRecord('cmn_location');
                location.addEncodedQuery('nameSTARTSWITH' + prefix);
                 location.query();
                 location.deleteMultiple();

   3. If the default value for the in scope field is not set to global, select global from the drop-down list.
   4. Select Run Script.
   {#dexscr-delete-demo-data__substeps_vpl_h4m_cfc}
{#dexscr-delete-demo-data__steps_g43_dp5_lyb}

## Result

After both scheduled jobs run successfully and the script to delete records in the global scope executes, the demo data is deleted from the instance.

If an error occurs during execution of the scheduled jobs, run the jobs again.

*[\>]: and then


