
## UnsubscribeFolder (1 of 2) {#unsubscribefolder_1}

Sent the UNSUBSCRIBE command that removes the specified mailbox name from the server's set of "active" mailboxes

**Returns:** void Aspose::Email::Clients::Imap::

```cpp
UnsubscribeFolder(System::SharedPtr < IConnection > connection, System::String folderName)
```

| Parameter | Description |
| --- | --- |
| connection | Connection to a server |
| folderName | Name of the folder |

---

## UnsubscribeFolder (2 of 2) {#unsubscribefolder_2}

Sent the UNSUBSCRIBE command that removes the specified mailbox name from the server's set of "active" mailboxes

**Returns:** void Aspose::Email::Clients::Imap::

```cpp
UnsubscribeFolder(System::String folderName)
```

| Parameter | Description |
| --- | --- |
| folderName | Name of the folder |

