I think generally I agree with razorsedge, this would be pretty easy to handle with a toggle option.  Maybe even just something as horribly named as $delete_before_dump = false as a default and then a quick if/else in the template to determine ordering.  Would you be willing to go that route?