Delete

Deletes a topic

2 variables
0 variables

Deletes a topic.

This method returns the following error codes:

  • PERMISSION_DENIED if the requesting user is not allowed to delete the requested topic or for access errors.
  • FAILED_PRECONDITION if the requested topic has already been deleted.
  • NOT_FOUND if no course or topic exists with the requested ID

Authorization

To use this building block you will have to grant access to at least one of the following scopes:

  • See, create, and edit topics in Google Classroom

Input

This building block consumes 2 input parameters

  = Parameter name
  = Format

courseId STRING Required

Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias

id STRING Required

Identifier of the topic to delete