Implemented repository remove.
Code review/tidy-up.