delete tmp files after use for attachment export

why do we need is this if we have the finally?