<!-- sdk-ref package=@pairsystems/goodmem registry=npm version=0.1.6 -->

# admin.drain

Initiates drain mode and optionally waits for the server to quiesce.

```ts
drain(request?: AdminDrainRequest, requestOptions?: RequestOptions): Promise<AdminDrainResponseShape>
```

[admin](../admin.md) · [TypeScript](../../typescript.md)

Related types — open only those used by your request:

- [AdminDrainRequest](../models/AdminDrainRequest.md)
- [RequestOptions](../models/RequestOptions.md)
