API to remove all students from section

Jump to solution
aggarwals
Community Member

Hi,

I want to remove all user from a section of a course using REST API, but API docs only have route to remove single user. 

Can't use that cause of rate limiter, any other alternative way?

0 Likes
1 Solution
robotcars
Community Champion

How many students are you trying to remove at once?

SIS CSV Import could cleanup a lot quickly.

Rate Limiter shouldn't care much if you do 1 at a time, or even a few at a time, you can account for rate limiting to keep a steady pace.

There's also this script if you just need a quick fix once in awhile.

https://community.canvaslms.com/t5/Canvas-Developers-Group/Bulk-Remove-Students-Tool/ba-p/257312

View solution in original post