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

# Delete a block

> The `ETag` header carries the page's new revision.

**Required permission:** `biolinks:pages:write`

Changing an **active** page also needs `biolinks:pages:publish`.



## OpenAPI

````yaml /api-reference/biolinks.openapi.json delete /pages/{page}/blocks/{block}
openapi: 3.1.0
info:
  title: Link in Bio API
  version: 1.0.0
  description: >-
    Link-in-bio pages and their blocks, short links, QR codes, tracking pixels,
    form submissions, analytics and custom domains.
servers:
  - url: https://{domain}/api/v1/biolinks
    description: Your platform domain
    variables:
      domain:
        default: app.example.com
        description: The domain you sign in to, without https://
security:
  - bearerAuth: []
  - apiKeyHeader: []
tags:
  - name: Pages
  - name: Blocks
  - name: Short links
  - name: Catalogue
  - name: Analytics
  - name: Submissions
  - name: QR codes
  - name: Pixels
  - name: Domains
paths:
  /pages/{page}/blocks/{block}:
    delete:
      tags:
        - Blocks
      summary: Delete a block
      description: |-
        The `ETag` header carries the page's new revision.

        **Required permission:** `biolinks:pages:write`

        Changing an **active** page also needs `biolinks:pages:publish`.
      operationId: blocks.destroy
      parameters:
        - name: page
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: Page ID.
        - name: block
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: Block ID.
        - name: If-Match
          in: header
          required: true
          schema:
            type: string
            example: '"a1b2c3"'
          description: >-
            The current `revision` in quotes, from the resource's `ETag`.
            Missing returns `428`; out of date returns `412`.
      responses:
        '204':
          description: Deleted
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'A workspace API key: `Authorization: Bearer osk_...`'
    apiKeyHeader:
      type: apiKey
      in: header
      name: x-api-key
      description: The same workspace API key in the `x-api-key` header.

````

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