You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This script is designed to run in the **Scripts - Background** module of ServiceNow. It identifies and deletes Incident records that were opened more than 90 days ago from the current date.
# Delete Incidents Older Than 90 Days – ServiceNow Script
2
+
3
+
This script is designed to run in the **Scripts - Background** module of ServiceNow. It identifies and deletes Incident records that were opened more than 90 days ago from the current date.
4
+
5
+
## 🧩 Purpose
6
+
7
+
To clean up old Incident records that are no longer relevant or needed, helping maintain a lean and efficient ServiceNow instance.
8
+
9
+
## 🛠️ Script Overview
10
+
11
+
12
+
(function() {
13
+
var ninetyDaysAgo = new GlideDateTime();
14
+
ninetyDaysAgo.subtract(1000 * 60 * 60 * 24 * 90); // 90 days in milliseconds
0 commit comments