---
title: removeBounced
slug: campaign/dev-docs/removebounced
createdAt: 2026-08-06T15:53:39.860Z
---

By default, the media type EMAIL is used. Use the [setMediaType](https://docs.optimizely.com/campaign/dev-docs/setmediatype) method to select another media type such as SMS.

**Type**: int

**Parameters**

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

**Return values**

Number of recipients that have been deleted

**Code structure**

```javascript
int removeBounced(String sessionId, long recipientListId)
```
