> ## 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 Chat Session Entity

> Deletes the ChatSessionEntity

Calls the Chat agent service DeleteChatSessionEntity.
NsApiSlow threshold: 5000 ms.



## OpenAPI

````yaml /openapi/rest/openapi-v3-ChatSession.json delete /api/v1/ChatSession/{id}
openapi: 3.0.0
info:
  version: v1-REST
  title: SuperOffice REST API v1
  description: SuperOffice REST API - ChatSession
  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/ChatSession/{id}:
    delete:
      tags:
        - ChatSession
      summary: Delete Chat Session Entity
      description: "Deletes the ChatSessionEntity\n\nCalls the Chat agent service DeleteChatSessionEntity.\r\nNsApiSlow threshold: 5000 ms."
      operationId: v1ChatSessionEntity_DeleteChatSessionEntity
      parameters:
        - name: id
          in: path
          description: The ChatSessionEntity 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: ChatSessionEntity deleted.
      security:
        - SuperOffice_Password: []
          SuperId_Authentication: []
components: {}

````

## Related topics

- [Delete Chat Session Entity](/en/api/reference/restful/agent/chat_agent/delete-chat-session-entity.md)
- [NSChatAgent](/en/automation/crmscript/reference/CRMScript.NetServer.NSChatAgent.md)
- [SuperOffice.WebApi.Agents.ChatAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.ChatAgent.md)
- [SuperOffice.WebApi.Agents.IChatAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.IChatAgent.md)
- [NSChatSessionEntity](/en/automation/crmscript/reference/CRMScript.NetServer.NSChatSessionEntity.md)
- [Get Chat Session Entity](/en/api/reference/restful/rest/chatsession/get-chat-session-entity.md)
