701 delete repository error

fixes #701