Skip to content

← All questions

What is the accepted way to delete the records a scenario created?

Example threads. These questions and answers were written by the SDODS team to document real problems and how to fix them. The people named are illustrative, not real users. Questions asked on this site are marked new.

Our regression suite has left about nine hundred posts behind in the sandbox and the list endpoint is getting slow. Right now the deletes are in an after-hook in our own step file, which works for the happy path and does nothing when the scenario fails halfway — which is exactly when there is a half-created record to clean.

Is there a first-class way to do this, or is a hook the answer and I should write a better one?

3 answers

Know the answer?

Wrap commands and output in triple backticks and they will render as a code block.

Checking whether you’re signed in…

Have a different question? Ask it.

Related