Deletes a course work.
gc_courses_course_work_delete(courseId, id)
courseId | Identifier of the course |
---|---|
id | Identifier of the course work to delete |
This request must be made by the Developer Console project of theOAuth client ID used tocreate the corresponding course work item. This method returns the following error codes:* PERMISSION_DENIED
if the requesting developer project did not createthe corresponding course work, if the requesting user is not permitted to delete the requested course or for access errors.
FAILED_PRECONDITION
if the requested course work has already beendeleted.
NOT_FOUND
if no course exists with the requested ID.
Authentication scopes used by this function are:
https://www.googleapis.com/auth/classroom.coursework.students
Set options(googleAuthR.scopes.selected = c("https://www.googleapis.com/auth/classroom.coursework.students")
Then run googleAuthR::gar_auth()
to authenticate.
See gar_auth
for details.