Remove a student

Removes an educationUser from an educationClass

Note: Teachers and students are in the class members collection. Before calling this API, insure that the educationUser you are removing is not a teacher. Get the list of teachers by calling educationclass_list_teachers and verifying the user Id of the user to be removed is not in the returned teacher list.

Permissions

One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions.

Permission type Permissions (from least to most privileged)
Delegated (work or school account) Not supported.
Delegated (personal Microsoft account) Not supported.
Application EduRoster.ReadWrite.All

HTTP request

DELETE /education/classes/{id}/members/{userId}/$ref

Request headers

Header Value
Authorization Bearer {token}. Required.

Request body

Do not supply a request body for this method.

Response

If successful, this method returns a 204 No Content response code and an empty response body.

Example

Request

The following is an example of the request.

DELETE https://graph.microsoft.com/v1.0/education/classes/{class-id}/members/{member-id}
Response

The following is an example of the response.

HTTP/1.1 204 No Content