# How to block delete api

**URL:** <https://community.auth0.com/t/how-to-block-delete-api/90773>\
**Category:** Get Help\
**Created:** [September 16, 2022, 10:59am UTC](https://community.auth0.com/t/how-to-block-delete-api/90773 "2022-09-16T10:59:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mab](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mab/32/38495_2.png) [@mab](https://community.auth0.com/u/mab)\
**Post date:** [September 16, 2022, 10:59am UTC](https://community.auth0.com/t/how-to-block-delete-api/90773/1 "2022-09-16T10:59:14Z")

</div>

Hello  
In auth0 is a delete api  
/api/v2/users/{id}

> **[Auth0 Management API v2](https://auth0.com/docs/api/management/v2#!/Users/delete_users_by_id)**

I have one application machine to machine which can use api from auth0. How to block this one delete api for chosen application?

---

<div class="post-metadata">

**Author:** ![john.gateley](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/john.gateley/32/10879_2.png) [@john.gateley](https://community.auth0.com/u/john.gateley)\
**Post date:** [September 16, 2022, 1:07pm UTC](https://community.auth0.com/t/how-to-block-delete-api/90773/2 "2022-09-16T13:07:29Z")

</div>

Hi @mab

Go to your Auth0 dashboard, open the Applications Section and go to theApplications subsection.  
Choose your M2M application that is calling the management API.  
Click the APIs tab for that app.  
Next to the management API is a down arrow, click that to expand the permissions.  
Remove the delete:users and any other permissions not needed by that app.

John

---

<div class="post-metadata">

**Author:** ![mab](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mab/32/38495_2.png) [@mab](https://community.auth0.com/u/mab)\
**Post date:** [September 19, 2022, 5:44am UTC](https://community.auth0.com/t/how-to-block-delete-api/90773/3 "2022-09-19T05:44:03Z")

</div>

Thanks, John, good job 😀

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [October 3, 2022, 5:44am UTC](https://community.auth0.com/t/how-to-block-delete-api/90773/4 "2022-10-03T05:44:33Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
