how to delete untracked files from git status code example Example 1: git remove untracked files git clean -fdx Example 2: clear untracked files git git clean -f