Skip to page contentSkip to chat
ServiceNow support
    • Community
      Ask questions, give advice, and connect with fellow ServiceNow professionals.
      Developer
      Build, test, and deploy applications
      Documentation
      Find detailed information about ServiceNow products, apps, features, and releases.
      Impact
      Accelerate ROI and amplify your expertise.
      Learning
      Build skills with instructor-led and online training.
      Partner
      Grow your business with promotions, news, and marketing tools
      ServiceNow
      Learn about ServiceNow products & solutions.
      Store
      Download certified apps and integrations that complement ServiceNow.
      Support
      Manage your instances, access self-help, and get technical support.
Remove Application installed via source control (ex. GitHub) and preserve data - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • Remove Application installed via source control (ex. GitHub) and preserve data
KB0781620

Remove Application installed via source control (ex. GitHub) and preserve data


460 Views Last updated : Apr 18, 2023 public Copy Permalink
KB Summary by Now Assist

Issue

There are several applications installed via source control (GitHub) to production. These applications will be deleted and installed again, this time from the Application Repository. However, the data that is present in the application tables needs to be retained.

How is it best to remove an Application installed via source control (ex. GitHub) while preserving the data?

Resolution

Deleting an application installed from source control will delete all of the tables and data associated with the application. An application installed via source control is installed as a sys_app record.  There is not a way to delete it and have it retain tables and data, which is possible with an app installed via the app repo (which is installed as a sys_store_app record). There are two suggestions as to how to preserve the data:

1) Clone production over a non-production instance. Delete the application from production, and then install it via the app repo. Export any data from the cloned instance to XML, and import it into production.

or

2) On production, create temporary tables with the same columns, but in a different scope. Copy the data from the application tables to the temporary tables. Delete the application and install it from the app repo, then, copy the data from the temporary tables to the newly installed tables.



The world works with ServiceNow.

Sign in for more! There's more content available only to authenticated users Sign in for more!
Did this KB article help you?
Did this KB article help you?

How would you rate your Now Support digital experience?

*

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

What can we improve? Please select all that apply.

What are we doing well? Please select all that apply.

Tell us more

*

Do you expect a response from this feedback?

  • Terms and conditions
  • Privacy statement
  • GDPR
  • Cookie policy
  • © 2025 ServiceNow. All rights reserved.