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

# Delete Notification Preference

> Soft-deletes the notification preference (`is_deleted`, `deleted_at`). Requires `notification-preference:delete`.



## OpenAPI

````yaml DELETE /notification/preference/{document_id}
openapi: 3.0.1
info:
  title: Notification Preference API
  description: >
    Notification preferences (`notification_preference`): a user's override for
    one channel and category. Without a row a channel is enabled; `payment`,
    `system` and `transactional` cannot be opted out of. The `/me` routes act on
    the authenticated user.


    List paging and sorting read the camelCase keys `pageSize`,
    `maxPageSizeOverride` and `orderBy`. Every route requires the
    `notification-preference:<action>` permission named in its description.
  version: '2026-10-21'
servers:
  - description: Production
    url: https://api.bbrands.io/api/v3
  - description: Certification
    url: https://certification.api.bbrands.io/api/v3
  - description: Development
    url: https://development.api.bbrands.io/api/v3
security:
  - bearerAuth: []
  - apiKeyAuth: []
tags:
  - name: Notification Preference
    description: Per-user opt-out overrides by channel and category.
paths:
  /notification/preference/{document_id}:
    delete:
      tags:
        - Notification Preference
      summary: Delete notification preference
      description: >-
        Soft-deletes the notification preference (`is_deleted`, `deleted_at`).
        Requires `notification-preference:delete`.
      operationId: notificationPreferenceDelete
      parameters:
        - $ref: '#/components/parameters/DocumentId'
      responses:
        '200':
          description: Notification preference deleted
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                  message:
                    type: string
                  meta:
                    $ref: '#/components/schemas/Meta'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
components:
  parameters:
    DocumentId:
      name: document_id
      in: path
      required: true
      description: Notification preference identifier.
      schema:
        type: string
        format: uuid
  schemas:
    Meta:
      type: object
      properties:
        correlation:
          type: string
          description: Request correlation id; quote it when reporting an issue.
        status:
          type: integer
        timestamp:
          type: string
          format: date-time
        version:
          type: string
          nullable: true
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              description: Machine-readable error code.
            errors:
              type: array
              items: {}
            message:
              type: string
        meta:
          $ref: '#/components/schemas/Meta'
  responses:
    Unauthorized:
      description: Missing, invalid, revoked or expired credentials
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Forbidden:
      description: The caller lacks the required permission
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    NotFound:
      description: Record not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    TooManyRequests:
      description: Rate limit exceeded
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
      headers:
        Retry-After:
          description: Seconds until a request is allowed again.
          schema:
            type: integer
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: A `secret` API key, `hzk_<env>_<prefix>_<secret>`.

````

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