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

> ## Agent Instructions
> Test in the sandbox first: base URL https://api-sandbox.y.uno (Test Mode in the Dashboard). Production is https://api.y.uno (Live Mode).
> Every API request needs the public-api-key and private-secret-key headers. Get them in the Dashboard at https://dashboard.y.uno/developers (Developers > Credentials); sandbox and production keys are different.
> Send an X-Idempotency-Key (a UUID) when creating payments, refunds and cancels, so retries do not create duplicates.
> Start with the Quickstart (https://docs.y.uno/docs/quickstart.md) and the agent guide (https://docs.y.uno/agents.md). To search these docs from a coding agent, connect the docs MCP server at https://docs.y.uno/mcp.

# Supprimer un domaine

> Désenregistrez un domaine de wallet que vous n'utilisez plus et libérez son emplacement sur la connexion



## OpenAPI

````yaml openapi/fr/domains/delete-domain.json DELETE /v1/payment-methods/{payment_method}/domains/{domain_id}
openapi: 3.0.0
info:
  version: 1.0.0
  title: Domains
servers:
  - url: https://api-sandbox.y.uno
    description: Sandbox
  - url: https://api.y.uno
    description: Production (US)
security:
  - public-api-key: []
    private-secret-key: []
paths:
  /v1/payment-methods/{payment_method}/domains/{domain_id}:
    delete:
      description: >-
        Désenregistre un domaine auprès du prestataire de portefeuille et marque
        l'enregistrement comme `INACTIVE`, ce qui libère son emplacement sur la
        connexion. Utilisez-le pour supprimer les domaines que vous n'utilisez
        plus avant d'en enregistrer de nouveaux. Le domaine doit avoir le statut
        `CREATED`, `REGISTERED` ou `ERROR`. Un domaine supprimé ne peut pas être
        restauré : enregistrez-le à nouveau si vous en avez besoin.
      operationId: delete_v1-payment-methods-payment-method-domains-domain-id
      parameters:
        - in: path
          name: payment_method
          description: Moyen de paiement pour lequel le domaine a été enregistré.
          schema:
            type: string
            enum:
              - APPLE_PAY
              - GOOGLE_PAY
          required: true
        - in: path
          name: domain_id
          description: >-
            L'`id` de l'enregistrement du domaine (UUID), tel que renvoyé par
            Register domain.
          schema:
            type: string
            format: uuid
          required: true
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                reason:
                  type: string
                  maxLength: 255
                  description: >-
                    Motif facultatif en texte libre, conservé à des fins
                    d'audit. Vaut `Removed via API` par défaut.
            examples:
              With reason:
                summary: With reason
                value:
                  reason: Seller no longer active
      responses:
        '204':
          description: >-
            Aucun contenu : l'enregistrement du domaine a été annulé (le corps
            est vide).
        '400':
          description: Paramètres non valides, ou le domaine est déjà `INACTIVE`.
          content:
            application/json:
              examples:
                Already inactive:
                  summary: Already inactive
                  value:
                    code: CANNOT_UNREGISTER
                    messages:
                      - domain is not in an active state
                Invalid parameters:
                  summary: Invalid parameters
                  value:
                    code: INVALID_PARAMETERS
                    messages:
                      - domain_id must be a valid UUID
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Aucun domaine avec cet `id` n'existe pour votre organisation.
          content:
            application/json:
              examples:
                Not found:
                  summary: Not found
                  value:
                    code: RESOURCE_NOT_FOUND
                    messages:
                      - >-
                        Domain with id 8a2f4b1c-6d3e-4f7a-9b21-0c5d8e7f6a43 was
                        not found
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Error:
      type: object
      properties:
        code:
          type: string
          example: RESOURCE_NOT_FOUND
        messages:
          type: array
          items:
            type: string
  securitySchemes:
    public-api-key:
      type: apiKey
      in: header
      name: public-api-key
    private-secret-key:
      type: apiKey
      in: header
      name: private-secret-key

````

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