This method returns the following error codes:

  • PERMISSION_DENIED if the requesting user is not permitted to deletestudents of this course or for access errors.

  • NOT_FOUND if no student of this course has the requested ID or if thecourse does not exist.

gc_courses_students_delete(courseId, userId)

Arguments

courseId

Identifier of the course

userId

Identifier of the student to delete

Details

Authentication scopes used by this function are:

  • https://www.googleapis.com/auth/classroom.rosters

Set options(googleAuthR.scopes.selected = c("https://www.googleapis.com/auth/classroom.rosters") Then run googleAuthR::gar_auth() to authenticate. See gar_auth for details.

See also