How to cleanup only issues?


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?


The deletion code is here:

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?

Any updates on this? I don’t want to delete the members or teams in the process.

I’m not sure the question. Running cleanup is safe and effectively what we do in production for

Things that are deleted outside of issues and events are just old stale things, like, membership invites that weren’t accepted. Users aren’t deleted here or teams or anything.

1 Like