How to cleanup only issues?

Hi,

How to cleanup only issues and related data with the sentry cleanup command without affecting users, teams or other organization-related data? Do I have to pass the specific model names via –model? If so, is there a pre-defined list of models?

Thanks

The deletion code is here: https://github.com/getsentry/sentry/blob/9774d33134368cbd87445837a6087f1ba5c689aa/src/sentry/runner/commands/cleanup.py#L175-L186

It should not affect anything else as far as I can read. Then only suspicion is over the OrganizationMember model but that seems like a transactional model. @matt, ideas?