If I delete a course via the API, is there any reason do delete any sections related to it as well? Thanks.
There shouldn't be, once you delete a course if you try to run an API call on a section in that course, it won't be found. However, if you restore a course, everything in the course including those sections will come back, just without enrollments. Do you have a specific concern about sections in deleted courses? The only issue I run into are that SIS IDs are the primary key so whether a course is active or deleted, once a SIS ID is used, it can't be used again.
Thanks for that help. I'm trying to implement some scripts to manage courses via API and wondered if I needed to worry about deleting sections as well as courses. This answers that query. Thank you.
Retrieving data ...