In azure devops we have hosted agent when I try to build using "ant" build the error I get is "BUILD FAILED E:\x\work\sdm\sdm\build.xml:44: Unable to delete directory E:\X\work\sdm\sdm\Web\WEB-INF\classes\com\national\sdm"
ant and java path has been set in environment variables
java version "1.8.0_241"
Apache Ant(TM) version 1.9.14
Seems azure devops doesn't have permission on agent to delete or copy how to rectify it?