Delete educationAssignmentResource

Namespace: microsoft.graph

Delete a specific educationAssignmentResource attached to an assignment.

In general, only teachers in the class can remove a resource. However, teachers cannot remove resources marked as "distributeToStudents", after the assignment has been published to students.


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) EduAssignments.ReadWriteBasic, EduAssignments.ReadWrite
Delegated (personal Microsoft account) Not supported.
Application Not supported.

HTTP request

DELETE /education/classes/{class-id}/assignments/{assignment-id}/resources/{resource-id}

Request headers

Header Value
Authorization Bearer {token}. Required.

Request body

Don't supply a request body for this method.


If successful, this method returns a 204 No Content response code. It does not return anything in the response body.



The following is an example of the request.



The following is an example of the response.

HTTP/1.1 204 No Content