JAMF makes a product called SIS Importer that can delete all the classes prior to an import with that tool. I still use that tool to import my Apple Classroom classes (though we want to use Apple School Manager eventually once full PowerSchool integration comes)
I have managed to sync with PowerSchool and the server, but still have old records. The recent update to ASM caused another 'hiccup' in my database. I would like to remove all of the imported classes (and users). Are you willing to share the complete script?
Got it - had the best CCT instructor ever!! Found my notes and figured it out!
Sorry to drag up an old post but i'm completely new to this API/CURL/Python stuff and it's taken me a day and a half just to get to a point of being able to use Python and get some form of a script together to delete classes, rather than post a VERY long list of steps I've created a blog containing all the steps to get this done from installing Python and installing modules to the python script I've used:
Hopefully it will help those of you who are like me and a bit new to this. It's probably not the prettiest script in the world but it works!