Delete all issues in a project

unit testing sentry? unit testing that an event got into sentry?

if you’re asking: “can i send a bunch of events to sentry as part of my test suite and then truncate a entire project” - then the answer is no. technically you can, but its not a supported use case and it has consequences so we’re just going to stick with “its not possible”

if for whatever purpose you really need to do this, your solution would be to send them to a project with an appropriate tag, and then search on events with the given tag to identify them. that would allow you to correlate to them to e.g. a test run (which is how we do it ourselves).

sentry’s not optimized (and won’t ever really be) for data deletion. we ttl data which is a faster-path (still expensive), and support explicit delete only because its a needed thing in both security-minded and privacy-minded use cases. those explicit deletes require rewriting and often reprocessing a lot of data though which is why we limit their exposure.