Why am I missing the uninstall option for a custom application?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-23-2022 10:53 AM
I need to uninstall my Globally scoped application from a sub-production instance so that I may reinstall from a code repository.
I have deleted/moved all application files out of the app. I also deleted all of the sys_metadata records for the app.
EDIT:
There is a condition on the Uninstall UI Action that I believe I am failing. However, the script include referenced appears to be hidden.
new GlideAppLoader().canUninstall(current.scope.toString(),current.sys_code.toString())
- Labels:
-
Studio

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-21-2024 09:42 PM - edited ‎01-21-2024 09:42 PM
Hi, I know this is an old question, but in case this is needed later. The OP has mentioned the app is globally scoped, if an app is in the global scope, they aren't available for uninstall from what I can determine.
Cheers,
Corey
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-17-2025 03:39 AM - edited ‎01-20-2025 07:32 AM
I found a solution (a second one that was removed for the sake of removing it, becouse if things get to complex you can shoot yourselve in the foot.):
1. Make backup of everything
2. Can you reaply said backup to your development instance and are able to publish again
3. Enable development mode for application
3. Go to application (sys_store_app related list -> installed files) and move everything to proper Application with SN OOTB related list function.
4. If application is empty deleted it (else you get a important error message, that i do not want to ignore)
5. Reaply did work on dev instance for testing.
6. Deleting app removes it from "my company applications" etc.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-19-2025 02:18 PM
Thats a rather slick solution! But for this instance, bear in mind the OP is referring to an app in the global scope rather than a scoped app.
Cheers,
Corey
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-20-2025 02:26 AM - edited ‎01-20-2025 07:34 AM
This is true, anyhow this approaches worked for me.
I edited my original reply with aditional information.
Make sure to use the "Move to Application..." feature in the sys_store_app table. This moved all the entries to the proper Global Application. This will be difficult for scoped application or propably not possible (not topic relevant, but...)?
The drawback is, when you apply an update set, servicenow will tell you you modified your values and there is a conflict.
This is also written in the carefull error message, when you delete the application.