You have to either set requireForce to false in your .gitconfig or use the -f or -i flag with this command.
git clean -fwill force to clean the untracked files even ifclean.requireForceis set to true which is default.git clean -iwill give you an interactive way for cleaning each filegit clean -nwill just show which files will be removed if you perform git clean.
Reference: https://git-scm.com/docs/git-clean