Repository cleanup