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

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

How to remove model from Dev box

(0) ShareShare
ReportReport
Posted on by 4,131

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,

I have the same question (0)
  • Verified answer
    WillWU Profile Picture
    22,361 on at

    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?

  • Suggested answer
    Adria Ariste Profile Picture
    User Group Leader on at

    Hi Yuji,

    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!

  • Verified answer
    Sukrut Parab Profile Picture
    71,710 Moderator on at

    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.

Helpful resources

Quick Links

Responsible AI policies

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

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Martin Dráb Profile Picture

Martin Dráb 503 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 278 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans