Announcements
No record found.
Hi,
I developed a custom model on the dev Box, and I would like to remove the model/package. I tried to delete the package folder under PackagesLocalDirectory, the system did not allow me to do so.
Thanks,
Hi Yuji,
Following this blog:
https://community.dynamics.com/365/financeandoperations/b/howtodynamics365/posts/how-to-delete-model-in-dynamics-365
Have you stopped the AOS web service and the Batch Management Service?
are you logged in as the admin user? It should allow you to delete the model folder, try closing VS first and stopping IIS/killing IIS Express before deleting, sometimes there's some files in use that cannot be deleted. Is it a MS subscription VM without admin access? In that case I still think you should be able to do the same.
You can try with the ModelUtil (in your PackagesLocalDirectory bin folder): ModelUtil.exe -delete -metadatastorepath=[path of the metadata store] -modelname=[name of the model to delete]
Adrià Ariste - Senior technical consultant @ Axazure - Read my blog!
Make sure to stop all services like MR , batch , Data import /export. Stop IIS close VS delete folder then come back and refresh model.
.
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.
Congratulations to our 2026 Super Stars!
Thanks to all of our 2025 Community Spotlight stars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Giorgio Bonacorsi 617
André Arnaud de Cal... 461 Super User 2026 Season 1
Syed Haris Shah 298 Super User 2026 Season 1