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

# Delete a sub-tenant registration

> Deletes a sub-tenant registration. Note: this only removes the registration metadata; the sub-tenant ID remains in runs/workflows as arbitrary. Requires secret key authentication.



## OpenAPI

````yaml https://app.stainless.com/api/spec/documented/triglit/openapi.documented.yml delete /v1/gateway/sub-tenants/{id}
openapi: 3.0.0
info:
  title: Triglit
  description: Documentação da API do Triglit
  version: '1.0'
  contact: {}
servers: []
security: []
tags: []
paths:
  /v1/gateway/sub-tenants/{id}:
    delete:
      tags:
        - Sub-Tenants
      summary: Delete a sub-tenant registration
      description: >-
        Deletes a sub-tenant registration. Note: this only removes the
        registration metadata; the sub-tenant ID remains in runs/workflows as
        arbitrary. Requires secret key authentication.
      operationId: publicsubtenants_deleteSubTenant_v1
      parameters:
        - name: id
          required: true
          in: path
          description: Sub-tenant registration ID
          schema:
            example: st_abc123def456
            type: string
        - name: X-API-Key
          in: header
          description: Chave de API do tenant (publishable key ou secret key)
          required: true
          schema:
            type: string
      responses:
        '204':
          description: Sub-tenant registration deleted successfully
        '401':
          description: API key não fornecida, inválida ou não encontrada.
        '403':
          description: Tipo de chave não permitido para este endpoint.
        '404':
          description: Sub-tenant not found
      security:
        - ApiKeyAuth: []
      x-codeSamples:
        - lang: JavaScript
          source: |-
            import Triglit from 'triglit';

            const client = new Triglit({
              apiKey: 'My API Key',
            });

            await client.subTenants.delete('st_abc123def456');
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: Chave de API do tenant (publishable key ou secret key)

````