# Issue with Auth0 Management API: "Request to Webtask exceeded allowed execution time"

**URL:** <https://community.auth0.com/t/issue-with-auth0-management-api-request-to-webtask-exceeded-allowed-execution-time/168845>\
**Category:** Get Help\
**Tags:** actions-management-api, management-api\
**Created:** [January 16, 2025, 6:04am UTC](https://community.auth0.com/t/issue-with-auth0-management-api-request-to-webtask-exceeded-allowed-execution-time/168845 "2025-01-16T06:04:23Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![sumansaurav](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sumansaurav/32/70627_2.png) [@sumansaurav](https://community.auth0.com/u/sumansaurav)\
**Post date:** [January 16, 2025, 6:13am UTC](https://community.auth0.com/t/issue-with-auth0-management-api-request-to-webtask-exceeded-allowed-execution-time/168845/2 "2025-01-16T06:13:36Z")

</div>

Regarding why the delete user endpoint isn’t called immediately:

- When using the Management API to delete a user, Auth0 first attempts to perform some internal cleanup operations
- This includes removing the user from any organizations, revoking refresh tokens, and cleaning up any associated data
- Only after these operations complete does Auth0 call your custom database delete script
- If these preliminary operations take too long, the webtask times out before reaching your script

These posts can help you explain why you receiving the error.

[https://community.auth0.com/t/request-to-webtask-exceeded-allowed-execution-time-error-from-authorize-endpoint-or-oauth-token-endpoint/104471](https://community.auth0.com/t/request-to-webtask-exceeded-allowed-execution-time-error-from-authorize-endpoint-or-oauth-token-endpoint/104471)

> [@"Request to Webtask exceeded allowed execution time" for a specific user](https://community.auth0.com/t/request-to-webtask-exceeded-allowed-execution-time-for-a-specific-user/138369):
>
> Hello, I have a specific user who is receiving “Request to Webtask exceeded allowed execution time” errors when attempting to login. After a few tries they got “Your account has been blocked after multiple consecutive login attempts. We’ve sent you a notification via your preferred contact method with instructions on how to unblock it.” Based on this post [“Your Account has been Blocked After Multiple Consecutive Login Attempts” Error](https://community.auth0.com/t/your-account-has-been-blocked-after-multiple-consecutive-login-attempts-error/87776), I had our Dev look into the admin console but could not se…

If the issue persists, you could consider implementing a queue-based system for user deletion, where the Management API triggers a deletion request that gets processed asynchronously, though this would require additional infrastructure.

---

_[View the full topic](https://community.auth0.com/t/issue-with-auth0-management-api-request-to-webtask-exceeded-allowed-execution-time/168845)._
