sub delete {
my ($self) = @_;
unless ( $self->borrowernumber > 0 ) {
Koha::Exceptions::CannotDeleteDefault->throw(
{ message => "Cannot delete system user" } );
}
my $deleted;
$self->_result->result_source->schema->txn_do(
sub {
-