How to delete a file that ends with the dot in Windows
Sometimes it happens that you cannot delete in Windows a file that ends with dot like filename. and consequently also a folder that contains it
Let’s assume we have the file filename. in a Windows folder on disk D:
D:\esempio\nomefile.
Trying to delete the file from File Explorer we get an error message like:
Item Not Found
This is no longer located in D:\esempio\
. Verify the item’s location and try again.
There is a solution to delete a file that ends with the dot in Windows
Open a DOS session with administrator rights and use the del command with the following syntax
del “\\?\<full path to file>”
eg, to use the this example:
del “\\?\d:\esempio\nomefile.”
and the problem is solved.