Archive and delete temporary files