# UsersResource

Canonical page: https://docs.ovok.com/java-sdk/reference/users-resource

```java
public final class UsersResource
```

Deletes users. Get it from [`SlimResource.users()`](/java-sdk/reference/slim-resource#users).

## Methods [#methods]

### delete [#delete]

```java
public void delete(
        String profileType,
        String profileId,
        RequestOptions options) throws IOException, InterruptedException
```

Deletes a user (`DELETE /v1/slim/user/{profileType}/{profileId}`).

**Parameters:**

- `profileType`: the FHIR profile type, such as `Patient`
- `profileId`: the profile ID
- `options`: per-request options, such as the timeout

**Throws:**

- `IOException`: if the request cannot be sent or the response cannot be read
- `InterruptedException`: if the thread is interrupted while waiting for the response
