Delete Digital Experience Score demo data
Delete the demo data for Digital Experience Score when you no longer need it.
Before you begin
Role required: admin
Procedure
-
Navigate to All > System Definition > Scheduled Jobs.
-
Find and open the DeleteAggregatedDemoDataDexScore scheduled job.
-
Select Execute Now.
The job runs in the background.
-
Verify the completion status of the scheduled job.
-
Access the Pending Scheduled Jobs and Running Scheduled Jobs tables.
- Pending Scheduled Jobs: Navigate to All > System Diagnostics > Pending Scheduled Jobs.
- Running Scheduled Jobs: Navigate to All > System Diagnostics > Running Scheduled Jobs.
-
Verify that the DeleteAggregatedDemoDataDexScore job isn’t listed in either of the tables.
-
-
Navigate back to the scheduled jobs list.
-
Find and open the DeleteDemoDataDexScore scheduled job.
-
Select Execute Now.
The job runs in the background.
-
Verify that the DeleteDemoDataDexScore job isn’t listed in the Pending Scheduled Jobs and Running Scheduled Jobs tables.
-
Delete records that are in the global scope.
-
Navigate to All > System Definition > Scripts - Background.
-
Enter the deletion script in the Run script (JavaScript executed on server) field.
JavaScriptvar 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(); -
If the default value for the in scope field is not set to global, select global from the drop-down list.
-
Select Run Script.
-
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.
---
title: Delete Digital Experience Score demo data
description: Delete the demo data for Digital Experience Score when you no longer need it.
locale: en-US
canonical_url: https://www.servicenow.com/docs/r/australia/it-operations-management/digital-end-user-experience-dex/dexscr-delete-demo-data.html
release: australia
product: Digital End-User Experience \(DEX\)
classification: digital-end-user-experience-dex
topic_type: task
last_updated: "2026-09-10"
reading_time_minutes: 1
breadcrumb: [Configuring DEX Score, Configure, Digital End-User Experience, IT Operations Management]
---
# Delete Digital Experience Score demo data
Delete the demo data for Digital Experience Score when you no longer need it.
## Before you begin
Role required: admin
## Procedure
1. Navigate to **All** > **System Definition** > **Scheduled 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 **All** > **System Diagnostics** > **Pending Scheduled Jobs**.
- Running Scheduled Jobs: Navigate to **All** > **System Diagnostics** > **Running Scheduled Jobs**.
2. Verify that the **DeleteAggregatedDemoDataDexScore** job isn’t listed in either of the tables.
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 **All** > **System Definition** > **Scripts - 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**.
## 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.
| title | Delete Digital Experience Score demo data |
| description | Delete the demo data for Digital Experience Score when you no longer need it. |
| locale | en-US |
| canonical_url | https://www.servicenow.com/docs/r/australia/it-operations-management/digital-end-user-experience-dex/dexscr-delete-demo-data.html |
| release | australia |
| product | Digital End-User Experience \(DEX\) |
| classification | digital-end-user-experience-dex |
| topic_type | task |
| last_updated | 2026-09-10 |
| reading_time_minutes | 1 |
| breadcrumb | Configuring DEX ScoreConfigureDigital End-User ExperienceIT Operations Management |