We have run into an issue where we have millions of test runs and results which have been closed. It is my understanding that closing a test plan makes a copy of the associated test case so that you have reference to the case details at the time the test was executed.
We have now run out of space and need to delete these closed test plans. We run a script which calls the delete_plan api. It appears that this deletes the plan and test results from the tests table, however the cases table is untouched. Is that correct? How can we also delete the copied test case that was created as a result of closing the test plan?