Reformatting your USB drive will remove all existing data from the drive and it can remove the viruses. You had better back up all of the files on the USB and delete any unfamiliar files and folders before you format your drive. If you need to recover data from USB, maybe this post - How to Recover Data from Formatted USB Drive (Step-by-step Guide) is what you need.