Remove a student

Namespace: microsoft.graph

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.


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.


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



The following is an example of the request.


The following is an example of the response.

HTTP/1.1 204 No Content