# 删除-图书

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /api/books/{id}:
    delete:
      summary: 删除-图书
      deprecated: false
      description: |
        删除-某本图书
      tags:
        - 图书管理
        - AJAX编程/图书管理
      parameters:
        - name: id
          in: path
          description: 图书id
          required: true
          example: 1
          schema:
            type: number
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    title: 响应消息
                  data:
                    type: object
                    properties:
                      id:
                        type: string
                        title: 删除的图书id
                    x-apifox-orders:
                      - id
                    required:
                      - id
                    title: 响应结果
                x-apifox-orders:
                  - message
                  - data
                required:
                  - message
                  - data
              example:
                message: 删除图书成功
                data:
                  id: '84862'
          headers: {}
          x-apifox-name: 成功
        '400':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    title: 响应消息
                    description: 请检查network和文档要求的参数名和值是否携带
                  data:
                    type: object
                    properties: {}
                    x-apifox-orders: []
                    title: 响应结果
                required:
                  - message
                  - data
                x-apifox-orders:
                  - message
                  - data
              example:
                message: 未找到对应图书
                data: {}
          headers: {}
          x-apifox-name: 请求参数缺失_AJAX
      security: []
      x-apifox-folder: 图书管理
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/1937884/apis/api-49760211-run
components:
  schemas: {}
  securitySchemes: {}
servers: []
security: []

```
