// Blog
Deleting your Audio and Video Bundles
Originally published on the Clarify.io blog. View archived copy.
So you’ve been doing a bunch of testing and prototype work using the Clarify API, you’re about to push your app into production, and you want to clean up all your test bundles. What do you do?
If you’re like us, you use the python helper library to build a quick-and-dirty command-line script to grab the list of bundles and delete all of them.
Here’s an example:
Warning: running this script deletes all your bundles! Please use with care.
One nice thing in this script is the use of the bundle_list_map() function, which applies the delete_bundle() function to every bundle. We use this function for a lot, because who wants to worry about pagination in this case?! In fact, we actually keep that function in a common script that we import into a lot of our admin and test scripts.
If you have any questions, give us a shout. In the mean time, happy cleanup!