Deleting in repository class with old name