Delete the file Vs DeActivate
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2023 10:30 PM
Hi All,
I have a existing "UI Policy", it is no longer needed now.
Question : What is the best way, can I delete the file or deactivate it?
Deactivate : It sits in customer instances forever.
Delete : I need to write fix script to delete for upgrade customers.
Please advice.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2023 10:41 PM - edited 08-25-2023 11:43 PM
Hi,
Reading you post I realize I'm not very consistant in my ways of working. Sometimes I just deactivate and sometimes I delete. I guess it depends on how likely it will be reactivated.
Regards,
Niklas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2023 12:16 AM
Hi @Shankar19 ,
If the UI policy has the potential to cause failures upon reactivation and is anticipated to be unnecessary in the future, my suggestion would be to remove it. This is because if new developers inadvertently activate the UI policy in the future, it could disrupt the current functionality.
Please Mark My Response as Correct/Helpful based on Impact
Regards,
Gunjan Kiratkar
2X ServiceNow MVP
Community Rising Star 2022
Youtube : ServiceNow Guy

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2023 07:41 AM
Hi Shankar,
Why not leverage Logical Deletion (Active: True/False) instead of Physical Deletion (Delete) when ServiceNow provides this as a feature.
Well, it may be case to case but suggestion would be to use Logical Deletion.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2023 07:53 AM
Hi,
I could recommend to deactivate it instead of deleting .I can say it might be the best practice for suppose if we unfortunately delete the useful files it may effect sometimes instead if we deactivate it ( Active = false) then if it is required in future usage then you can make it ( Active= true) and can use
Thanks,
Ramya Addala