API Course & Section delete?

Jump to solution
aaron_bahmer
Community Contributor

If I delete a course via the API, is there any reason do delete any sections related to it as well? Thanks.

0 Likes
1 Solution
audra_agnelly
Community Champion

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.

View solution in original post