> ## 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 Document Entity

> Deletes the DocumentEntity

Calls the Document agent service DeleteDocumentEntity.
NsApiSlow threshold: 2000 ms.



## OpenAPI

````yaml /openapi/rest/openapi-v3-Document.json delete /api/v1/Document/{id}
openapi: 3.0.0
info:
  version: v1-REST
  title: SuperOffice REST API v1
  description: SuperOffice REST API - Document
  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/Document/{id}:
    delete:
      tags:
        - Document
      summary: Delete Document Entity
      description: "Deletes the DocumentEntity\n\nCalls the Document agent service DeleteDocumentEntity.\r\nNsApiSlow threshold: 2000 ms."
      operationId: v1DocumentEntity_DeleteDocumentEntity
      parameters:
        - name: id
          in: path
          description: The DocumentEntity to be deleted.
          required: true
          schema:
            format: int32
            type: integer
        - 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: DocumentEntity deleted.
        '412':
          description: >-
            Delete aborted because DocumentEntity has changed since the
            requested If-Unmodified-Since timestamp.
      security:
        - SuperOffice_Password: []
          SuperId_Authentication: []
components: {}

````

## Related topics

- [Delete Document Entity](/en/api/reference/restful/agent/document_agent/delete-document-entity.md)
- [NSDocumentAgent](/en/automation/crmscript/reference/CRMScript.NetServer.NSDocumentAgent.md)
- [SuperOffice.WebApi.Agents.DocumentAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.DocumentAgent.md)
- [SuperOffice.WebApi.Agents.IDocumentAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.IDocumentAgent.md)
- [Delete Document Template Entity](/en/api/reference/restful/rest/list_documenttemplate/delete-document-template-entity.md)
- [Delete Document Template Entity Headings](/en/api/reference/restful/rest/list_documenttemplate/delete-document-template-entity-headings.md)
