> ## Documentation Index
> Fetch the complete documentation index at: https://support.i.moneyforward.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete a native knowledge article (ADMIN only)

> Deletes the DynamoDB row and every S3 object under the document (content, original, images), then schedules a managed-KB re-ingest so the Bedrock lane stops citing it.



## OpenAPI

````yaml https://assist.i.moneyforward.com/api/v1/openapi.json delete /api/v1/knowledge/{docId}
openapi: 3.1.0
info:
  title: Minabot Public API
  description: >-
    REST API for querying sessions, knowledge articles and playbooks, and for
    maintaining native knowledge articles and playbooks. Requires an API key
    issued from the Admina admin panel; every write endpoint requires an ADMIN
    key.


    ### Rate limits

    Not currently enforced at the HTTP layer. Respect upstream DynamoDB capacity
    when making bulk requests (keep concurrency under ~20 RPS per key).
  version: 1.0.0
  contact:
    name: Minabot
    url: https://github.com/moneyforward-i/minabot
servers:
  - url: https://assist.i.moneyforward.com
    description: Production
security:
  - ApiKeyAuth: []
paths:
  /api/v1/knowledge/{docId}:
    delete:
      tags:
        - Knowledge
      summary: Delete a native knowledge article (ADMIN only)
      description: >-
        Deletes the DynamoDB row and every S3 object under the document
        (content, original, images), then schedules a managed-KB re-ingest so
        the Bedrock lane stops citing it.
      operationId: deleteApiV1KnowledgeByDocId
      parameters:
        - in: path
          name: docId
          schema:
            type: string
            minLength: 1
            pattern: ^(?:[a-z0-9-]+(?:\/[a-z0-9-]+)*\.(?:md|txt))$|^(?:[a-f0-9]{32})$
          required: true
      responses:
        '200':
          description: Deleted
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                    const: true
                  success:
                    type: boolean
                    const: true
                required:
                  - ok
                  - success
        '400':
          description: Invalid body, unknown folder, or a connector docId
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                    const: false
                  error:
                    type: string
                    description: Human-readable error message
                required:
                  - ok
                  - error
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                    const: false
                  error:
                    type: string
                    description: Human-readable error message
                required:
                  - ok
                  - error
        '403':
          description: API key lacks ADMIN role
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                    const: false
                  error:
                    type: string
                    description: Human-readable error message
                required:
                  - ok
                  - error
        '404':
          description: Document not found in this tenant
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                    const: false
                  error:
                    type: string
                    description: Human-readable error message
                required:
                  - ok
                  - error
        '409':
          description: >-
            expectedUpdatedAt is stale, or a knowledge base import is in
            progress
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                    const: false
                  error:
                    type: string
                    description: Human-readable error message
                required:
                  - ok
                  - error
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: >-
        API key created via the Admina admin panel (`Settings → API Keys →
        Create`). Format: `mb_live_<40-hex>`.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.