Fix userdelete api and call (fixes #379)