That would work well, unless the input and output file are the same.  This is the case, for example, when graphics rules are chained together (or even for the first graphics rule if its working with an extracted movie frame).  If we delete the output, then we no longer have an input :-)