Delete Digital Experience Score​ demo data

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

    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 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.