Hi,
In this post we will look at how can we delete a label file in Dynamics AX 2012.Labels are no longer a file system like we had in 2009. We now have a new node in AOT – Label Files.
If you search in your application folder, you wont find the label file there.The application folder is located here.
“C:Program FilesMicrosoft Dynamics AX60ServerMicrosoftDynamicsAXbin Application ApplStandard”.
In Dynamics AX 2012, the label file is imported in your current model.
Now let us restart the AOS and see what happens. After restarting the AOS, go back to your application folder and try to find the label file again. This time the label file will be found.On every AOS restart, all label files will be copied to the application folder from the model store. So your label files are contained in your models but they are stored in your application folder as well.
Now let us try to delete the label file. Right click on your label file. Do you see a delete/remove option?
The answer is “No”. so how do we delete the label file then? Below is the method by which a label file can be deleted easily.
- To create a temporary model.
- Move our label file to the temporary model.
- Stop the AOS.
- Delete the temporary model.
- Start the AOS
AXUTIL delete /model:TmpModel
When you open AX now, you will get a dialog saying that “Your model store has been modified.” This is normal because each time you perform an operation on a model, you will get this dialog. Depending on your operation, you should select one of the option. Since we just deleted a model which just had a label file, select Skip.
Open AOT and notice that the label file is deleted now.
Happy Axing 🙂