When removing a input only file, do not remove realted files