# How to delete user accounts via API without IP blocking

**URL:** <https://meta.discourse.org/t/how-to-delete-user-accounts-via-api-without-ip-blocking/314959>\
**Category:** SSO\
**Tags:** rest-api\
**Created:** [July 4, 2024, 7:59am UTC](https://meta.discourse.org/t/how-to-delete-user-accounts-via-api-without-ip-blocking/314959 "2024-07-04T07:59:23Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![gschmid](https://avatars.discourse-cdn.com/v4/letter/g/a698b9/32.png) [@gschmid](https://meta.discourse.org/u/gschmid)\
**Post date:** [July 4, 2024, 7:59am UTC](https://meta.discourse.org/t/how-to-delete-user-accounts-via-api-without-ip-blocking/314959/1 "2024-07-04T07:59:23Z")

</div>

We have integrated Discourse with another app, and users are managed in Keycloak. When a user deletes his account in the other app, we also delete it via API in Discourse.  
Works fine, but the user’s IP is then blocked automatically in Discourse, so there is no way to log in as a different user from the same IP.  
Can this IP blocking be turned off? Or make it automatically unblock after some time?

---

_[View the full topic](https://meta.discourse.org/t/how-to-delete-user-accounts-via-api-without-ip-blocking/314959)._
