> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sidenet.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete prompt block

> Soft-deletes the block. Blocked with 409 (carrying `referencedBy`) when an agent draft or active version still references it; pass `?force=true` to override. Version rows are never deleted — agent versions published against this block stay pinned to them and keep rendering.



## OpenAPI

````yaml /api-reference/openapi.json delete /v1/prompt-blocks/{id}
openapi: 3.1.0
info:
  title: Sidenet API
  version: 1.0.0
  description: >-
    Sidenet HTTP endpoints exposed by the Sidenet Studio. All routes require an
    api key that can be generated through the studio in studio.sidenet.ai.
servers:
  - url: https://api.sidenet.ai
security:
  - bearerAuth: []
paths:
  /v1/prompt-blocks/{id}:
    delete:
      tags:
        - Prompt blocks
      summary: Delete prompt block
      description: >-
        Soft-deletes the block. Blocked with 409 (carrying `referencedBy`) when
        an agent draft or active version still references it; pass `?force=true`
        to override. Version rows are never deleted — agent versions published
        against this block stay pinned to them and keep rendering.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            example: d41a8f6b-9c27-4b13-a5e8-2f60c1d7b394
        - name: force
          in: query
          required: false
          schema:
            type: boolean
            example: false
      responses:
        '200':
          description: Soft-deleted
          content:
            application/json:
              schema:
                type: object
                properties:
                  deleted:
                    type: boolean
                  id:
                    type: string
                    format: uuid
              example:
                deleted: true
                id: d41a8f6b-9c27-4b13-a5e8-2f60c1d7b394
        '404':
          description: Not found
        '409':
          description: Referenced by an agent
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Organization API key, generated in studio.sidenet.ai. Backend only —
        never in a browser.

````