## Delete user

`client.users.delete(stringusername, RequestOptionsoptions?): void`

**delete** `/user/{username}`

This can only be done by the logged in user.

### Parameters

- `username: string`

### Example

```typescript
import RpTestDocs1 from 'rp-test-docs-1';

const client = new RpTestDocs1({
  apiKey: process.env['PETSTORE_API_KEY'], // This is the default and can be omitted
});

await client.users.delete('username');
```
