---
title: removeBounced
slug: campaign/docs/removebounced
docTags: 
createdAt: 2026-07-02T19:01:47.121Z
---

By default, the media type EMAIL is used. Use the [setMediaType](docId\:ElqHgIk1SYriXO5Zw18T-) 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)
```
