kmercnt cleanup