The approach I use for M/R scripts that process a file in the GID stage is to move the files to a Processed folder or subfolder in the Summarize stage, then have a separate process (scripted or manual) to remove files after a retention period. That way, recently processed files can still be retrieved if needed, and eventually deleted when I am sure they are no longer needed.