General repository cleanup