cleanup after archiving