clear archive functionality