Skip to main content

Notifications

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,031

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,

  • Verified answer
    André Arnaud de Calavon Profile Picture
    294,161 Super User 2025 Season 1 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

  • 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.

  • MYGz Profile Picture
    2,031 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.

  • 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,

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,161 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,942 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans