Filter removes input file if flag given, avoid cross plat issue with del command on unix