Reinstalling while maintaining settings/users/projects/integrations

Is it possible to reinstall an onpromise Sentry in a way that discards all existing events/issues, but maintains all settings, users, projects and integrations? If so, what would be the steps?

I have already configured auto resolve of issues, but disk space is still increasing very rapidly.