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?