Thanks for your reply, SKaero.
I've used deluser.sh before in its simplest form, so I'm aware that the syntax says 'username'. Are you suggesting that I try the host option, since that had changed between the test and live system in my case?
General Qs:
This is the searching line in the php script (I know some php but not enough to deal with databases)
// find user in loca database
$user = rcube_user::query($username, $args['host']);
The "rcube_user" must mean username, but I was wondering if it picks anything that might be a part of that particular entry.
At the end, this script finds the user_id associated with username. It might be convenient to allow deletion based on user_id, since it is unique across the database, even if the username is repeated for some reason. It seems this would be a small change in this deluser.sh script.
Thanks.