Destroying test data generated during the test

Hmm not lot, unfortunately… Maybe you can export the metrics to a JSON file and then use that in an external script to clean up things? Alternatively, an xk6 extension might suffice? :man_shrugging:

Can you elaborate on your use case some more? Is it not possible to somehow distinguish the test data from the normal data and clean it up in teardown() that way?

1 Like