# deleteUser {#deleteuser}

## Syntax {#syntax}

`deleteUser(userId)`

## Arguments {#arguments}

**userId** a string indicating a user name.

## Details {#details}

Delete a user. It removes the user from all the groups the user belongs to.

It can only be executed by an administrator.

## Examples {#examples}

```
deleteUser(`JohnSmith);
```

