Fix repo removal call that threw exception during repo delete