---
title: "Delete a subject from a Index"
method: DELETE
path: "/v0/indices/{index_id}/subjects/{subject_id}"
tags: ["目录"]
---

# Delete a subject from a Index

`DELETE /v0/indices/{index_id}/subjects/{subject_id}`

## Request

- The document declares no server URL.
- Auth: HTTP bearer

## Path parameters

- `index_id` integer, required
- `subject_id` integer, required: 条目 ID

## Response `200`

Successful Response

## Other responses

- `401`: Unauthorized
- `404`: Not Found

## Changes

- **2022-11-19** (v0) `bb6bcec42206`: 2 warning, 2 info
  - removed the optional property `detail` from the response with the `401` status
  - removed the optional property `detail` from the response with the `404` status
  - added the optional property `details` to the response with the `401` status
  - added the optional property `details` to the response with the `404` status
- **2022-10-24** (v0) `bbacb4142fa3`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/bangumi/apis/bangumi-open-api/changes/v0/indices/:index_id/subjects/:subject_id/delete.md)

---

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