"The directory is not empty" - Build fails in the Visual Studio Online

If you get the following error on building a build in Visual Studio Online:

"The directory is not empty" 

 

Check if you opened the Build Server in your remote and the corresponding agent folders are opened. If it is open, close the opened folder path and try to build it again.