> ## 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 Trigger Script By Unique Id

> Delete a trigger CRMScript.

NsApiSlow threshold: 5000 ms.
<para />## Online Restricted: ## The CRMScript agent is not available in Online by default. Access must be requested specifically when app is registered.



## OpenAPI

````yaml /openapi/agent/openapi-v3-CRMScriptAgent.json post /api/v1/Agents/CRMScript/DeleteTriggerScriptByUniqueId
openapi: 3.0.0
info:
  version: v1-Agents
  title: SuperOffice Agent API v1
  description: SuperOffice Agent API - CRMScriptAgent
  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/Agents/CRMScript/DeleteTriggerScriptByUniqueId:
    post:
      tags:
        - CRMScript_Agent
      summary: Delete Trigger Script By Unique Id
      description: "Delete a trigger CRMScript.\n\nNsApiSlow threshold: 5000 ms.\r\n<para />## Online Restricted: ## The CRMScript agent is not available in Online by default. Access must be requested specifically when app is registered."
      operationId: v1CRMScriptAgent_DeleteTriggerScriptByUniqueId
      parameters:
        - name: $select
          in: query
          description: >-
            Optional comma separated list of properties to include in the
            result. Other fields are then nulled out to reduce payload size:
            "Name,department,category". Default = show all fields.
          required: false
          schema:
            type: string
        - 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
      requestBody:
        content:
          application/json:
            schema:
              $ref: >-
                #/components/schemas/SuperOffice.WebApi.v1.Carriers.CRMScriptCarriers.DeleteTriggerScriptByUniqueIdRequest
          text/json:
            schema:
              $ref: >-
                #/components/schemas/SuperOffice.WebApi.v1.Carriers.CRMScriptCarriers.DeleteTriggerScriptByUniqueIdRequest
          application/xml:
            schema:
              $ref: >-
                #/components/schemas/SuperOffice.WebApi.v1.Carriers.CRMScriptCarriers.DeleteTriggerScriptByUniqueIdRequest
          text/xml:
            schema:
              $ref: >-
                #/components/schemas/SuperOffice.WebApi.v1.Carriers.CRMScriptCarriers.DeleteTriggerScriptByUniqueIdRequest
          application/x-www-form-urlencoded:
            schema:
              $ref: >-
                #/components/schemas/SuperOffice.WebApi.v1.Carriers.CRMScriptCarriers.DeleteTriggerScriptByUniqueIdRequest
          application/json-patch+json:
            schema:
              $ref: >-
                #/components/schemas/SuperOffice.WebApi.v1.Carriers.CRMScriptCarriers.DeleteTriggerScriptByUniqueIdRequest
          application/merge-patch+json:
            schema:
              $ref: >-
                #/components/schemas/SuperOffice.WebApi.v1.Carriers.CRMScriptCarriers.DeleteTriggerScriptByUniqueIdRequest
        description: TriggerScriptUniqueId
        required: true
      responses:
        '204':
          description: No Content
      security:
        - SuperOffice_Password: []
          SuperId_Authentication: []
components:
  schemas:
    SuperOffice.WebApi.v1.Carriers.CRMScriptCarriers.DeleteTriggerScriptByUniqueIdRequest:
      description: 'DeleteTriggerScriptByUniqueId: Delete a trigger CRMScript.'
      type: object
      properties:
        TriggerScriptUniqueId:
          type: string

````

## Related topics

- [Delete Trigger Script By Unique Id](/en/api/reference/restful/rest/triggerscript/delete-trigger-script-by-unique-id.md)
- [SuperOffice.WebApi.Data.CRMScript DeleteTriggerScriptByUniqueIdRequest](/en/api/reference/webapi/SuperOffice.WebApi.Data.CRMScript_DeleteTriggerScriptByUniqueIdRequest.md)
- [SuperOffice.WebApi.Agents.ICRMScriptAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.ICRMScriptAgent.md)
- [SuperOffice.WebApi.Agents.CRMScriptAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.CRMScriptAgent.md)
- [Get Trigger Script By Unique Id](/en/api/reference/restful/rest/triggerscript/get-trigger-script-by-unique-id.md)
- [Validate Trigger Script By Unique Id](/en/api/reference/restful/rest/triggerscript/validate-trigger-script-by-unique-id.md)
