Option to disable sentry

Hi, is there a way to uninitialize Sentry after a previous initialization? I need to allow the user to decide if they consent to Sentry creating cookis. Of course I could initialize after accepting the privacy policy but the problem is that the user can configure individual consents at any time.

Which SDK are you using? If you’re using @sentry/browser or another SDK that relies on it, you can use the close method: sentry-javascript/sdk.ts at 84a6dc041567f6b4486183ccabbd078a48225304 · getsentry/sentry-javascript · GitHub.