---
title: removeByRecipientList
slug: campaign/dev-docs/removebyrecipientlist
createdAt: 2026-08-06T15:53:46.648Z
---

If the client is configured for a client-wide unsubscribe list, this method does exactly the same as the [remove](https://docs.optimizely.com/campaign/dev-docs/remove-mailingwebservice) method.

**Type**: void

**Parameters**

| Name            | Type   | Value                    |
| --------------- | ------ | ------------------------ |
| sessionId       | String | ID of the session        |
| recipientListId | long   | ID of the recipient list |
| recipientId     | String | ID of the recipient      |

**Return values**

- **Code structure**

```javascript
void removeByRecipientList(String sessionId, long recipientListId, String recipientId)
```
