---
sourceDocument: Australia IT Service Management
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/it-service-management

 Release :

    - australia

ft:locale :

    - en-US

ft:publication_title :

    - Australia IT Service Management

ft:clusterId :

    - itsm

bundleId :

    - itsm

workflow :

    - Technology


---

# Delete demo data

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

Release version: Australia  
Updated March 12, 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

[Install Digital Experience Score​](https://servicenow-prod.fluidtopics.net/dleuokhJloF5I1L9mSq_ag "You can install the Digital Experience Score​ application (sn_dex_score) if you have the admin role. The application includes demo data that you can load after the installation is complete. It also installs related ServiceNow Store applications and plugins if they are not already installed.")

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 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.
**Related tasks**   

* [Load Digital Experience Score​ demo data](https://servicenow-prod.fluidtopics.net/KwSgm5toeGHf4ccc3gIXqw "Load the demo data for Digital Experience Score​ after installing the application.")

*[\>]: and then


