---
title: "Delete a user's pinned course."
method: DELETE
path: "/user/pinned/{courseID}"
tags: ["User"]
---

# Delete a user's pinned course.

`DELETE /user/pinned/{courseID}`

Removes a course from the current user's pinned courses.

## Path parameters

- `courseID` integer, required

## Response `200`

A successful response.

- ProtobufDeletePinnedResponse

## Other responses

- `400` — **[3 INVALID_ARGUMENT]** *Bad request.* **Returned in case of:** - Missing courseID field in request message.
- `401` — **[16 UNAUTHENTICATED]** *Could not authorize the operation.* **Returned in case of:** - Missing JWT cookie header - Crypto/rsa: verification error (invalid jwt) - JWT cookie not found
- `404` — **[5 NOT_FOUND]** *Could not find entity.* **Returned in case of:** - Trying to unpin non-pinned course

---

[API](https://skmtc.dev/tum-dev/apis/gocast-api.md) · [All operations](https://skmtc.dev/tum-dev/apis/gocast-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/tum-dev/gocast-api/revisions/18ce08adf685/schema)
