Delete the file Vs DeActivate

Shankar19
ServiceNow Employee
ServiceNow Employee

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.

 

 

5 REPLIES 5

Niklas Peterson
Mega Sage
Mega Sage

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

Gunjan Kiratkar
Kilo Patron
Kilo Patron

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

Jaspal Singh
Mega Patron
Mega Patron

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.

Ramya Addala
Tera Contributor

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