---
title: removeAll
slug: campaign-dev-docs/removeall-recipientws
createdAt: 2026-07-02T19:01:46.737Z
---

:::hint{type="info"}
**Note**
Do not use this method with recipients who unsubscribe from a newsletter. Instead, use the [add](https://docs.optimizely.com/campaign-dev-docs/add-unsubscribews) and [addAll](https://docs.optimizely.com/campaign-dev-docs/addall-unsubscribews) methods of the [UnsubscribeWebservice](https://docs.optimizely.com/campaign-dev-docs/unsubscribewebservice).
:::

**Type**: boolean\[ ]

**Parameters**

| Name            | Type       | Value                    |
| --------------- | ---------- | ------------------------ |
| sessionId       | String     | ID of the session        |
| recipientListId | long       | ID of the recipient list |
| recipientIds    | String\[ ] | IDs of the recipients    |

**Return values**

- true: Recipient has been deleted successfully
- false: Recipient does not exist

**Code structure**

```javascript
boolean[] removeAll(String sessionId, long recipientListId, String[] recipientIds)
```
