Delete all scheduled pipelines in all projects on a (test) instance

For testing we like to roll a(n old) copy of the production instance out on a test instance, but that includes getting all scheduled pipelines for all projects set up on the test instance.

When one of those pipelines does something with the contents of the repo that is visible to the wider world it’s not so good.

So I’m looking for ways to delete all the scheduled pipelines after rolling a “new” (it might be the same old copy) backup out on the test instance.