best practice for deleting a custom app

ralphalberti
Kilo Expert

I tried this once before and learned that I orphaned some records which messed up the UI. Do I have to delete all records from all tables before deleting a custom app?

4 REPLIES 4

bernyalvarado
Mega Sage

Hi Ralph, when you're referring to records, are your referring to:



a) custom tables from your custom app


b) OOB tables


c) custom tables that inherit from an OOB table


d) tables from other application



My understanding is that ServiceNow will handle option "a" when you delete a custom app, but it will not handle b, c and d.



Here is what the wiki says on this subject:


By default, deleting an application also deletes all the records that are associated with the application, such as tables, business rules, and menus. Alternatively, you can deactivate an application that is no longer in use to preserve all application data.



...



In the confirmation dialog box, enter delete and click OK.


  • The system deletes the custom application record unless the application extends other applications (starting with the Dublin release).

source: Managing Applications - ServiceNow Wiki



I hope this is helpful sir!



Thanks,


Berny


Hi Berny,



You mentioned that ServiceNow will handle option "a" when you delete a custom app, but it will not handle b, c and d.

Does this mean that it will not allow me to delete any custom application which contains tables inherited from OOB tables OR it is allowed but is against the best practice? Because, i created a custom app and tables in it which extend task table but it still let me delete the application.


Please explain.



Thanks,


Vineetha


Hello Vineetha,



This is the expected behavior. You can delete custom table with extensions.


Hi Pradeep,



Thank you for your reply, i understood now.



Regards,


Vineetha