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

# Delete Hierarchy Entity

> Deletes the HierarchyEntity

Calls the List agent service DeleteHierarchyEntity.
NsApiSlow threshold: 5000 ms.



## OpenAPI

````yaml /openapi/rest/openapi-v3-Hierarchy.json delete /api/v1/Hierarchy/{id}
openapi: 3.0.0
info:
  version: v1-REST
  title: SuperOffice REST API v1
  description: SuperOffice REST API - Hierarchy
  contact:
    name: SuperOffice DevNet
    url: https://docs.superoffice.com/en/api/index.html
    email: sdk@superoffice.com
servers:
  - url: http://localhost:56350
  - url: https://localhost:56350
security: []
tags: []
externalDocs:
  description: >-
    The SuperOffice DevNet Community has more documentation, examples, and
    discussion forums.
  url: https://community.superoffice.com/en/developer/
paths:
  /api/v1/Hierarchy/{id}:
    delete:
      tags:
        - Hierarchy
      summary: Delete Hierarchy Entity
      description: "Deletes the HierarchyEntity\n\nCalls the List agent service DeleteHierarchyEntity.\r\nNsApiSlow threshold: 5000 ms."
      operationId: v1HierarchyEntity_DeleteHierarchyEntity
      parameters:
        - name: id
          in: path
          description: The HierarchyEntity to be deleted.
          required: true
          schema:
            type: integer
            format: int32
        - name: SO-AppToken
          in: header
          description: >-
            The application token that identifies the partner app. Used when
            calling Online WebAPI from a server.
          required: false
          schema:
            type: string
      responses:
        '204':
          description: HierarchyEntity deleted.
      security:
        - SuperOffice_Password: []
          SuperId_Authentication: []
components: {}

````

## Related topics

- [Delete Hierarchy Entity](/en/api/reference/restful/agent/list_agent/delete-hierarchy-entity.md)
- [NSListAgent](/en/automation/crmscript/reference/CRMScript.NetServer.NSListAgent.md)
- [SuperOffice.WebApi.Agents.IListAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.IListAgent.md)
- [SuperOffice.WebApi.Agents.ListAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.ListAgent.md)
- [Delete Hierarchy From Path](/en/api/reference/restful/rest/hierarchy/delete-hierarchy-from-path.md)
