Formatting may not be able to kill all viruses all the time. A better way is to scan completely by using an up-to-date software.