Thank you for the reply, @FredHaller ...
I'm not sure I fully understand yet, but I think your explanation is helpful. So, you are using both your Canvas "test" environment and your "production" environment? Your Canvas URLs look similar to this, correct?
You say that you want to remove all the data from the Test Environment that is cluttering up your Production Environment? Per the document, What is the Canvas release schedule for beta, prod... - Instructure Community - 242411 (canvaslms.co...:
Test Environment Reset
The test environment is reset on the third Saturday of every month with the production release. The test environment is overwritten with data from the production environment and allows users to test real data without compromising any user content. Learn more about the Canvas test environment.
Test Environment Update
The test environment is updated with new and updated features from the most recent production release on the first Monday after the production release.
So, if my assumptions about your request are true, I'm a little confused still on why you'd want to remove all the data from the Test Environment when it will eventually include all information from the Production Environment.
Apologies if I'm not understanding things just yet...but hopefully we're getting closer to a solution for you? Looking forward to hearing back from you soon.