Command
git clean
Explanation
git clean is used to remove untracked files from the working tree. It removes the untracked files from the working tree.
Examples
Dry run (show what would be deleted)
git clean -n
Force delete untracked files
git clean -f