---
metadata:
  - name: generator
    content: Diplodoc Platform v5.50.6
alternate:
  - https://appmetrica.yandex.com/docs/en/mobile-api/management/applications/access/delete.md
  - https://appmetrica.yandex.com/docs/ru/mobile-api/management/applications/access/delete.md
---
> **Documentation Index:** Fetch the complete configuration index at https://appmetrica.yandex.com/docs/en/llms.txt

# Deleting access

Deletes previously granted access permissions.

## Request format {#request-format}

```
DELETE https://api.appmetrica.yandex.com/management/v1/application/{id}/grant?user_login={login}
```
#|
|| `id` | App ID ||
|| `login` | Yandex email address (login) of the user.

{% note alert %}

If you omit the `user_login` parameter, the access is revoked from the user making the request, that is, the user unsubscribes from the app.

{% endnote %}

||
|#

## Example {#example}

{% list tabs %}

- cURL

   ```bash translate=no
   curl -X DELETE \
     'https://api.appmetrica.yandex.com/management/v1/application/1111/grant?user_login=user123' \
     -H 'Authorization: OAuth <your_token>'
   ```

   where `<your_token>` is an OAuth token that can be obtained using [instructions](https://appmetrica.yandex.com/docs/en/mobile-api/intro/authorization.md#get-oauth-token).

- HTTP

   ```http translate=no
   GET /management/v1/application/1111/grant?user_login=user123' HTTP/1.1
   Host: api.appmetrica.yandex.com
   Authorization: OAuth <your_token>
   ```

   where `<your_token>` is an OAuth token that can be obtained using [instructions](https://appmetrica.yandex.com/docs/en/mobile-api/intro/authorization.md#get-oauth-token).

{% endlist %}

<!-- source: en/_includes/feedback-button-4.md -->
If you didn't find the answer you were looking for, you can use the feedback form to submit your question. Please describe the problem in as much detail as possible. Attach a screenshot if possible.

<a href="../../../../troubleshooting/feedback-new">
  <span class="button">Contact support</span>
</a>

<a href="../../../../troubleshooting/feedback-docs">
  <span class="button">Suggest an improvement for documentation</span>
</a>
<!-- endsource: en/_includes/feedback-button-4.md -->
