Remove Identical objects in MSD axapta

This is very good link which I am posting here.

code to remove identical copy

X++ code to remove identical copy of object in axapta. If there is same copy of form1 as form2 then if you want to cleanup identical copy then you can use that link code in job. This code can work for var layer. You can also use same thing for user layer.