Open CMD prompt by pressing WIN+R and type cmd and press enter

Enter the USB drive letter - "F:" without quotations and press enter

Now type

First we have to delete lnk files.

lnk files :- A Windows Shortcut File (LNK) is used by Microsoft Windows to link to multiple types of information like files, network shares, search results, etc. The Windows Shortcut File format is also known as: The Shell Link Binary File format.

F: />del *.lnk files

Now,Run below command to remove

F: /> attrib -r -s -h -a  *.*

-r to remove read only files

-a to remove archive files

-s to remove system files

-h to remove hidden files

*.* to remove all different types of files