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

# Eliminar tipología

> Elimina una tipología específica del sistema.
No se puede eliminar si tiene unidades asociadas.



## OpenAPI

````yaml /api/openapi.json delete /typologies/{typology}
openapi: 3.1.0
info:
  title: Isprop API
  version: 1.0.0
  description: API para gestión de unidades inmobiliarias y leads de Isprop
servers:
  - url: https://{tenantDomain}/api/v1
    description: Dominio del tenant
    variables:
      tenantDomain:
        default: tenant.example.com
        description: Dominio asignado al tenant, sin protocolo ni ruta.
security:
  - http: []
tags:
  - name: Unit
  - name: Project
  - name: Product
  - name: Typology
  - name: Lead
  - name: Lead Channel
  - name: Attribute
paths:
  /typologies/{typology}:
    delete:
      tags:
        - Typology
      summary: Eliminar tipología
      description: |-
        Elimina una tipología específica del sistema.
        No se puede eliminar si tiene unidades asociadas.
      operationId: deleteTypology
      parameters:
        - name: typology
          in: path
          required: true
          description: The typology UUID
          schema:
            type: integer
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    enum:
                      - Tipología eliminada exitosamente
                required:
                  - message
        '401':
          $ref: '#/components/responses/AuthenticationException'
        '404':
          $ref: '#/components/responses/ModelNotFoundException'
        '422':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        enum:
                          - CANNOT_DELETE_TYPOLOGY
                      message:
                        type: string
                        enum:
                          - >-
                            No se puede eliminar la tipología porque tiene
                            unidades asociadas
                      details:
                        type: object
                        properties:
                          units_count:
                            type: string
                          hint:
                            type: string
                            enum:
                              - >-
                                Reasigne las unidades a otra tipología antes de
                                eliminar
                        required:
                          - units_count
                          - hint
                    required:
                      - code
                      - message
                      - details
                required:
                  - error
components:
  responses:
    AuthenticationException:
      description: Unauthenticated
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                description: Error overview.
            required:
              - message
    ModelNotFoundException:
      description: Not found
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                description: Error overview.
            required:
              - message
  securitySchemes:
    http:
      type: http
      scheme: bearer
      bearerFormat: sanctum

````

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