Repository cleaning