---
title: "DELETE /v1/courses/{courseId}/students/{userId}"
method: DELETE
path: "/v1/courses/{courseId}/students/{userId}"
tags: ["courses"]
---

# DELETE /v1/courses/{courseId}/students/{userId}

`DELETE /v1/courses/{courseId}/students/{userId}`

Deletes a student of a course. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to delete students of this course or for access errors. * `NOT_FOUND` if no student of this course has the requested ID or if the course does not exist.

## Path parameters

- `courseId` string, required
- `userId` string, required

## Response `200`

Successful response

---

[API](https://skmtc.net/google/apis/classroom.md) · [All operations](https://skmtc.net/google/apis/classroom/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/google/classroom/versions/1b98f151d40b/schema)
