how to delete untracked files from git sttais code example Example 1: git remove untracked files git clean -fdx Example 2: how to remove untracked files in git git clean -fd