Remove all EXE files

Tagged with: , , , , , ,

Removes all exe files in the current directory tree. Useful to clear virus from flash drives.


find . -name "*.exe" -delete

2 Responses to “Remove all EXE files

  • 1
    saroj kumar sahoo
    April 26th, 2008 10:58

    hi ,

    this command not working properly, i need to delete all the .exe file bcz my makefile only delete object file……

  • 2
    Binny V A
    April 26th, 2008 21:09

    Are you using this in Windows? This command is for linux only.

    In windows try something like ‘del *.exe’

Leave a Reply