I was facing same issue because somehow build resulted in nested target/classes directory, For me solution worked is using 7-Zip File Manager, and navigate to the path, then hit SHIFT + DELETE while the item is selected. https://answers.microsoft.com/en-us/windows/forum/all/cannot-delete-file-the-system-cannot-find-the-file/d6cf08ec-7cc6-4f97-b2d4-202b84d3a03a