properly remove files after archiving