D365FO Azure Build restores deleted objects

We are using VSTS with D365FO. When we delete any objects, check-in & then perform build from VSTS, it throws error related to the missing objects. And the deleted files are created again in the folder and objects are visible in AOT after the build. Why does such an issue occur & how to resolve it?