> ## Documentation Index
> Fetch the complete documentation index at: https://direct-api.reap.global/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete a widget



## OpenAPI

````yaml /openapi.example.json delete /v1/widgets/{widgetId}
openapi: 3.0.0
info:
  title: Reap Direct API (Example)
  version: 1.0.0
  description: >-
    EXAMPLE ONLY — placeholder CRUD endpoints so the docs pipeline can be
    previewed before the first real public endpoints ship. Delete this file and
    point docs.json at the live /openapi.json once real endpoints exist.
servers:
  - url: https://api.direct.reap.global
security:
  - apiKey: []
tags:
  - name: Widgets (example)
    description: A fake resource demonstrating how generated endpoint pages will look.
paths:
  /v1/widgets/{widgetId}:
    parameters:
      - name: widgetId
        in: path
        required: true
        description: Unique identifier of the widget.
        schema:
          type: string
          format: uuid
    delete:
      tags:
        - Widgets (example)
      summary: Delete a widget
      operationId: deleteWidget
      responses:
        '204':
          description: The widget was deleted.
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/InternalError'
components:
  responses:
    Unauthorized:
      description: Missing or invalid API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Forbidden:
      description: The API key lacks the required scope.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    NotFound:
      description: No widget with this id exists.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    InternalError:
      description: Unexpected server error.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  schemas:
    ErrorResponse:
      type: object
      required:
        - statusCode
        - type
        - message
      properties:
        statusCode:
          type: integer
          description: HTTP status code.
        type:
          type: string
          enum:
            - INVALID_REQUEST_ERROR
            - AUTHENTICATION_ERROR
            - PERMISSION_ERROR
            - RATE_LIMIT_ERROR
            - API_ERROR
            - UPSTREAM_ERROR
          description: Coarse error category; always present.
        code:
          type: string
          description: Stable machine code; present for actionable errors.
        message:
          type: string
          description: Human-readable explanation.
        param:
          type: string
          description: Offending field for validation errors.
        details:
          description: Structured extra context (e.g. validation issues).
          anyOf:
            - type: array
              items:
                type: object
                additionalProperties: {}
            - type: object
              additionalProperties: {}
        requestId:
          type: string
          description: Correlation id for support.
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: Enter your API key

````