If you have thousands of file then it is not possible to check manually and remove the untracked file. But Git has commands to remove files according to use case. So before removing any file, you can check what will be deleted using the below command.
$ git clean -n
Now to remove your untracked file you can use the below command.
$ git clean -f -X