How to Delete Label File from AOT

Let’s say that we have a label file, e.g. DOC that we want to delete:

To successfully remove a label file from AOT we have to create a temporary model, move the label file to the model, and then remove the model. Also, we have to make sure that all label physical files are deleted from the AOS bin directory. This is especially important in case that we need to import the same label file once in the future.
Thus, the steps for deletion of a label file (e.g. the DOC label file) are the following:

1. Create a temporary model for the label file deletion.
Open AX Development workspace and navigate to Tools -> Model management -> Create model:

2. In AOT locate and move the Docentric label file (DOC) to the newly created model (i.e. Temp).

3. Delete the Temp model.
Close AX client, open Microsoft Dynamics AX 2012 Management Shell and execute the command for the model deletion:
axutil delete /model:Temp

4. AOS stop (not restart but only stop).

5. Delete physical files related to the DOC label file from the AOS bin directory.
Open Windows explorer and navigate to:
C:\Program Files\Microsoft Dynamics AX\60\Server\<AOS instance name>\bin\Application\Appl\Standard

for example:
C:\Program Files\Microsoft Dynamics AX\60\Server\MicrosoftDynamicsAX\bin\Application\Appl\Standard

In the searchbox of Windows Explorer type 'axdoc*', and afterwards delete all found files.

6. AOS start.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

Docentric respects your privacy. Learn how your comment data is processed >>

Docentric respects your privacy. Learn how your comment data is processed >>