This request must be made by the Developer Console project of the OAuth client ID used to create the corresponding announcement item.
gc_courses_announcements_delete(courseId, id)
courseId | Identifier of the course |
---|---|
id | Identifier of the announcement to delete |
This method returns the following error codes:
PERMISSION_DENIED
if the requesting developer project did not createthe corresponding announcement, if the requesting user is not permitted to delete the requested course or for access errors.
FAILED_PRECONDITION
if the requested announcement 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.announcements
Set options(googleAuthR.scopes.selected = c("https://www.googleapis.com/auth/classroom.announcements")
Then run googleAuthR::gar_auth()
to authenticate.
See gar_auth
for details.