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

# Delete a subname

> Deletes an existing offchain subname by its full name. Requires a valid API key.



## OpenAPI

````yaml /openapi/offchain-openapi.json DELETE /api/v1/subnames/{fullSubname}
openapi: 3.0.0
info:
  title: Offchain Subnames API
  description: >-
    API for managing offchain subnames. Provides endpoints for authentication,
    subname management, and statistics.
  version: 1.0.0
  contact:
    name: Namespace
    url: https://namespace.ninja
    email: cap@namespace.ninja
  termsOfService: https://namespace.ninja/tos
servers:
  - url: https://offchain-manager.namespace.ninja
    description: Production
  - url: https://staging.offchain-manager.namespace.ninja
    description: Staging
security: []
tags:
  - name: Subnames
    description: ''
paths:
  /api/v1/subnames/{fullSubname}:
    delete:
      tags:
        - Subnames
      summary: Delete a subname
      description: >-
        Deletes an existing offchain subname by its full name. Requires a valid
        API key.
      operationId: SubnameNodeController_deleteSubname
      parameters:
        - name: fullSubname
          required: true
          in: path
          description: The full subname to delete (e.g., alice.oppunk.eth)
          schema:
            example: alice.oppunk.eth
            type: string
      responses:
        '200':
          description: Subname deleted successfully
          content:
            application/json:
              schema:
                example:
                  message: Subname deleted successfully
        '400':
          description: Invalid subname format
          content:
            application/json:
              schema:
                example:
                  statusCode: 400
                  message: 'Validation failed: fullSubname must be at least 8 characters'
                  error: Bad Request
        '401':
          description: Missing or invalid API key
        '404':
          description: Subname does not exist
        '500':
          description: Unexpected error
      security:
        - x-auth-token: []
components:
  securitySchemes:
    x-auth-token:
      type: apiKey
      in: header
      name: x-auth-token

````