---
title: "Aspose::Email::Clients::Google::IGmailClient::DeleteAccessRule method"
url: "https://reference.aspose.com/email/cpp/aspose.email.clients.google/igmailclient/deleteaccessrule/"
product: "Aspose.Email for C++"
description: "Deletes access rule"
---


## DeleteAccessRule {#deleteaccessrule}

Deletes access rule

**Returns:** virtual void Aspose::Email::Clients::Google::

```cpp
DeleteAccessRule(System::String calendarId, System::String roleId)
```

| Parameter | Description |
| --- | --- |
| calendarId | Calendar identifier. |
| roleId | Role identifier. |

