Skip to content

Integration deletion is very slow on uninstall #112438

@sentry-junior

Description

@sentry-junior

Summary

Deleting a Sentry app integration (clicking "Uninstall" on a configuration) is very slow — it does not complete instantly as expected. The operation takes a noticeably long time, making the UI feel unresponsive.

Symptom

  • Navigate to an installed integration's configuration page
  • Click "Uninstall" / delete the integration
  • Deletion is slow; the user waits several seconds (or longer) before the operation completes

Expected behavior

Deletion should be near-instant or at minimum provide responsive feedback. The API call triggering deletion is likely synchronous and blocking on work that could be deferred (e.g. cascading deletes, async cleanup tasks).

Root cause hypotheses

  • High confidence: Deletion endpoint performs synchronous cascading cleanup (e.g. uninstalling webhooks, revoking tokens, cleaning up installations) in the request/response cycle rather than deferring to a background task.
  • Medium confidence: The SentryApp or SentryAppInstallation deletion path may be doing database-level cascades or firing external API calls inline.

Unknowns

  • Exact endpoint and view handling the delete request
  • Whether there is any task deferral currently in place
  • Scale of the slowdown (seconds vs. tens of seconds; consistent or variable by integration)

Action taken on behalf of David Cramer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions