- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2022 11:49 AM
I was reviewing a Global script include with read-only protection policy. I clicked on "Insert and Stay" to make a copy of the script, that I was going to change to make my own script.
However, the copied script include also has a read-only protection policy (and is in global). I can't delete or rename it.
So now I have a duplicate global (OOB) script. How can I go about deleting this duplicate script?
Thanks
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2022 04:47 AM
I found HI article.
Description
An application file with read-only protection policy cannot be deleted. However, it is sometimes appropriate to need such a file deleted, as when a read-only script include is unintentionally duplicated.
Cause
A read-only protection policy applies special protection to an application file that prevents it from being modified or deleted. Only ServiceNow employees can alter the protection policy of an application file, and then modify or delete it.
Resolution
Please contact ServiceNow Technical Support for assistance to delete the application file.
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0789968
Aman Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2022 07:09 AM
Ok, thanks Aman!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2022 07:30 AM
Glad to help 🙂
Aman Kumar

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2022 11:22 PM
Found a better self service solution than "just ask HI". Maybe do this at your own risk though, I'm sure ServiceNow will think it's a defect and patch it.
1. Move the Insert and Stay update to a new update set.
2. Complete that update set
3. Export that update set to XML
4. Delete that update set
5. Open the XML file in a text editor, and update the following lines:
From this:
To this:

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2023 06:44 AM
Very, very clever. This worked wonderfully!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2024 04:39 AM
Nice, still working in 2024!
I did try to edit the sys_policy field in the update set XML to no longer be protected but that didn't work, deleting works though so that's useful to avoid a support ticket.