---
title: "删除自定义课程（按 position 定位，CustomSchedule 无 id 字段）"
method: DELETE
path: "/api/schedule/custom"
tags: ["Schedule"]
---

# 删除自定义课程（按 position 定位，CustomSchedule 无 id 字段）

`DELETE /api/schedule/custom`

## Request

- Base URL: `/` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/schedule/custom`
- Auth: HTTP bearer

## Query parameters

- `position` integer, required
- `courseId` string

## Response `200`

Successful HTTP response; legacy business endpoints may return success=false in this envelope, while social endpoints use matching 4xx/5xx statuses

- CommonPojoResultJsonResult
  - `code` integer
  - `errorCode` string
  - `message` string
  - `success` boolean

## Other responses

- `400`: Request validation failure; legacy endpoints may still return HTTP 200 with success=false
- `401`: Missing, expired or invalid bearer token
- `403`: Forbidden or privacy restriction
- `429`: Rate limited
- `500`: Server failure; legacy endpoints may still return HTTP 200 with success=false

## Changes

- **2026-11-04** `bbd151b5879f`: 2 info
  - api tag `Schedule` added
  - api tag `ScheduleQuery` removed
- **2026-10-07** `60219fe3a218`: 1 info
  - added the new optional `query` request parameter `courseId`
- **2026-10-06** `880521a9d345`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gdeiassistant/apis/gdeiassistant-api/changes/api/schedule/custom/delete.md)

---

[API](https://skmtc.dev/gdeiassistant/apis/gdeiassistant-api.md) - [All operations](https://skmtc.dev/gdeiassistant/apis/gdeiassistant-api/llms.txt) - [OpenAPI document](https://skmtc.dev/gdeiassistant/apis/gdeiassistant-api/revisions/b3983583c335?raw)
