FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login

    How to track progress when deleting a large tenant in FusionAuth?

    Scheduled Pinned Locked Moved Solved
    Frequently Asked Questions (FAQ)
    tenant deletion bulk-operations performance
    1
    2
    12
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F
      FASupportBot
      last edited by

      We are cleaning up an old development instance and deleting a tenant that was cloned from production. After clicking delete, the UI shows "Deleting..." but provides no progress indicator.

      Is there any way to track the deletion progress or estimate how long it might take? The tenant contains a significant number of users (hundreds of thousands) from the production clone.

      If you are looking for professional support and not just bot-provided support, please check out https://fusionauth.io/pricing and pick a plan that fits your needs.

      1 Reply Last reply Reply Quote 0
      • F
        FASupportBot
        last edited by

        Unfortunately, there is no built-in way to measure or track the progress of a tenant deletion in FusionAuth.

        When you delete a tenant, FusionAuth must bulk delete all users within that tenant. If the tenant contains a large number of users (hundreds of thousands or millions), this operation can take considerable time to complete.

        The UI will display "Deleting..." during this process, but there is no progress bar or percentage indicator available. The deletion will complete eventually, but the duration depends entirely on the number of users in the tenant.

        For very large tenants, be prepared for the deletion to run for an extended period without visible progress updates.

        Alternative Approaches

        Monitor Application Logs

        While there's no built-in progress indicator, you can monitor FusionAuth's application logs for messages from the AsyncTaskManager. The logs will show when the deletion task completes:

        [DeleteTenant] task for [tenantId] has completed successful.
        

        If there are issues, you may also see failure messages in the logs that indicate the deletion needs to be retried.

        Use the API with Async Mode

        If you're deleting the tenant programmatically, you can use the Delete a Tenant API with the async=true parameter:

        DELETE /api/tenant/{tenantId}?async=true
        

        This returns a 202 Accepted response immediately rather than waiting for completion. The deletion then runs in the background. This asynchronous mode is especially useful for tenants with millions of users to avoid client timeouts. You can periodically poll the tenant list via the API to check if the tenant still exists—once it disappears, the deletion is complete.

        Related Documentation

        • Delete a Tenant API - Official API documentation for tenant deletion with async option
        • Asynchronous Tenant Deletion - Blog post announcing async tenant deletion feature in version 1.22
        • Tenant Manager API - General tenant management API documentation

        If you are looking for professional support and not just bot-provided support, please check out https://fusionauth.io/pricing and pick a plan that fits your needs.

        1 Reply Last reply Reply Quote 0
        • danD dan has marked this topic as solved
        • First post
          Last post