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, ...
Suggested answer

Model still shows in Visual Studio after being removed

(0) ShareShare
ReportReport
Posted on by 157

Hello, I removed a model with

ModelUtil.exe -delete -metadatastorepath=K:\AOSService\PackagesLocalDirectory -modelname=PRD511
and also deleted the folder PRD511 in 
K:\AosService\PackagesLocalDirectory
I model refresh in Visual Studio under the Dynamics 365 menu item. But in Application Explorer the model still shows but is italicized.
How do I remove it?
I have the same question (0)
  • Suggested answer
    Joris dG Profile Picture
    17,775 on at
    RE: Model still shows in Visual Studio after being removed

    Italicized means binary modules.

    I bet you compiled that code at some point. "models" are code artifacts, so the modelutil DELETE action removed the code. But you still have the binaries there. Those show up in the AOT italicized (no code, but binaries are there).

    Close Visual Studio, stop the batch process and IIS. Then remove the whole folder for your whole model in K:\AosService\PackagesLocalDirectory (if you don't stop the services, the files can't be delete since they're in use).

  • Suggested answer
    Kurt Warner Profile Picture
    157 on at
    RE: Model still shows in Visual Studio after being removed

    My problem was Visual Studio had cached the model list somehow, even though I did refresh models. To fix, close and restart Visual Studio.

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 2,206

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 596 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans