I once had my USB flash drive back from one of my friends! an error message kept showing up everytime I try to format the USB! I Could not solve the issue through windows GUI, got it done with commandline
Open cmd as admin and run the following commands one by one
diskpart
list disk
take the number of the usb disk as a note, use it in the snippet below as an argument for select disk
command,
select disk usb-disk-number-taken-from-previous-output
clean
create partition primary
format fs=ntfs quick
assign
exit