I'm trying to delete a teachers enrollment from many courses. Nothing seems to be working. Originally I was going to make two calls, one that selects all courses she is enrolled in and then I was going to filter it out to select all courses before a given data then I was going to use a second call in a loop to delete her from all those courses.
The first call I'm going to use is: https://puc.instructure.com/api/v1/users/340026/enrollments?access_token="some access token"
Then I tried testing to delete it: https://puc.instructure.com/api/v1/courses/1352882/enrollments?id=340026&task=delete&access_token="some access token" or
when I try the above calls I always get a 404 not found error.
I also tried using a csv file which said it worked fine but the teacher is still in the course.