@echo off for /f "usebackq tokens=2*" %%v in (`cmdkey /list ^| findstr Target ^| findstr git`) do ( cmdkey /delete:%%v )