web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Delete a model which was previously deployed to UAT and Production

(0) ShareShare
ReportReport
Posted on by 2,059

Hi,

I'm having confusion after reading the blogs and Microsoft documentation on how to remove a model from UAT/PROD.

I could come up with 2 ways:

1. Download the same package from Asset Library which was previously deployed. Add File ModuleToRemove.txt (with model listed). Reupload to Asset Library and deploy to UAT. When I do this, there's a warning on LCS that "it will first reinstall the model and then delete it. In order to not reinstall, delete the model from package."

2. Create a new package (on dev machine) selecting just 4 out of 5 models (1 model needs to be deleted, so didn't select it). Add ModuleToRemove.txt file in the scripts folder of new package. Upload package to Asset Library (This time warning was gone which was there in step1) and deploy to UAT.

In the first approach, for the warning to go away, if I want to delete the model, I'll have to unzip the package, delete the files in Package folder and edit InstallationHotFix XML, rezip the package and upload to LCS. But this method gives validation error on LCS. If I do it without unzipping and zipping then I'm unable to edit the InstallationHotFix XML file (able to delete the files w/o unzipping).

Whats the right approach, as only 2nd approach didn't give any warnings, errors etc. The update is running as I'm typing this.

There's also some confusion with the terminology of Model and Module. The model is termed as module in InstallationHotFix and also the file is called ModuleToRemove and not ModelsToRemove. Anyone can clarify?

Appreciate any tips.

Best Regards,

I have the same question (0)
  • Verified answer
    abdultp Profile Picture
    867 on at
    RE: Delete a model which was previously deployed to UAT and Production

    Hi,

    We did it similar to the 2nd approach. Create the package excluding the model which needs to be deleted, upload in asset library & while updating it on UAT a dialog box will appear which mentions about the difference in the models between dev and uat asks to type 'CONFIRM' to go ahead with deployment.

    Regards,

  • MYGz Profile Picture
    2,059 on at
    RE: Delete a model which was previously deployed to UAT and Production

    Hello abdultp

    Thanks for your input.

    Did you move the package to production after that? I read it somewhere in a blog that this "Model Missing" approach fails to move to production.

  • Suggested answer
    abdultp Profile Picture
    867 on at
    RE: Delete a model which was previously deployed to UAT and Production

    Yes, we deployed it on live environment on the same day. It's running smoothly without any error.

  • Verified answer
    André Arnaud de Calavon Profile Picture
    299,576 Super User 2025 Season 2 on at
    RE: Delete a model which was previously deployed to UAT and Production

    Hi MYGz,

    The second option you listed is part of the All-In-One deployable package strategy. You can read more here: All-in-one deployable packages - Finance & Operations | Dynamics 365 | Microsoft Docs

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 1,922

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 1,922

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 835 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans