Unable to delete an ax model ?

 

Issue while deleting a model

There are many ways to delete an model from D365FO developer VM. But the quickest one, which I usually rely on is 

  • Stop services using iisreset/stop command prompt [ Cross check whether Microsoft Dynamics 365 Unified Operations: Batch Management Service, Microsoft Dynamics 365 Unified Operations: Data Import Export Framework Service and World Wide Web Publishing Service are stopped ]

  • Navigate to K:\AosService\PackagesLocalDirectory and then select my model and delete the entire folder.
But sometimes you might end up with error saying that file is in use. If we navigate into the folder try to delete individual folders, we will get to know name of the service which exactly is using the file.

In my case it was IIS Express.
  • You can find the IIS Express in the task bar of your VM as shown in the following image
  • Right click it & click exit.

  • After that you should be able to delete your model

Comments