---
title: Delete notification
slug: api-documentation/delete-notification
docTags: 
createdAt: 2026-08-27T16:57:16.574Z
---

{
  "id": "XPMh5S56FTKbqbkBnETK-",
  "type": "api-oas-v2",
  "data": {
    "method": "DELETE",
    "url": "https://api.upstartcommerce.com/notifications/v1/notifications/{notificationId}",
    "servers": [
      {
        "url": "https://api.upstartcommerce.com/notifications/v1/notifications/{notificationId}",
        "description": "Production server"
      },
      {
        "url": "https://staging-api.upstartcommerce.com/notifications/v1/notifications/{notificationId}",
        "description": "Staging server"
      },
      {
        "url": "http://localhost:8080/api/v1/notifications/{notificationId}",
        "description": "Local development server"
      }
    ],
    "name": "Delete notification",
    "description": "<p>Delete a specific notification.</p>\n<p><strong>Security</strong>: Requires <code>notification:manage</code> permission.\nUsers can only delete their own notifications.</p>",
    "contentType": "application/json",
    "request": {
      "pathParameters": [
        {
          "kind": "required",
          "name": "notificationId",
          "type": "string<uuid>",
          "description": "Notification ID",
          "format": "uuid"
        }
      ],
      "headerParameters": [
        {
          "name": "accept",
          "type": "string",
          "kind": "optional",
          "description": "Generated from available response content types",
          "enum": [
            "application/json"
          ],
          "default": "application/json"
        }
      ],
      "queryParameters": [],
      "bodyDataParameters": [],
      "formDataParameters": [],
      "oAuthParameters": [
        {
          "id": "oauth2",
          "name": "oauth2",
          "kind": "optional",
          "type": "oauth2",
          "description": "OAuth2 with JWT bearer tokens",
          "oauth2Flows": {
            "clientCredentials": {
              "tokenUrl": "https://auth.upstartcommerce.com/oauth/token",
              "scopes": {
                "notification:manage": "Full access to manage own notifications"
              }
            },
            "authorizationCode": {
              "authorizationUrl": "https://auth.upstartcommerce.com/oauth/authorize",
              "tokenUrl": "https://auth.upstartcommerce.com/oauth/token",
              "scopes": {
                "notification:manage": "Full access to manage own notifications"
              }
            }
          },
          "requiredScopes": [
            "notification:manage"
          ]
        }
      ],
      "cookieParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "Notification deleted successfully",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "customType": "MarkAsReadResponse",
            "schema": [
              {
                "name": "success",
                "kind": "required",
                "type": "boolean",
                "description": "Whether the operation was successful"
              },
              {
                "name": "message",
                "kind": "required",
                "type": "string",
                "description": "<p>Human-readable result message</p>"
              }
            ],
            "modelRef": "#/components/schemas/MarkAsReadResponse",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "401",
        "description": "Authentication failed",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "customType": "ErrorResponse",
            "schema": [
              {
                "name": "error",
                "kind": "required",
                "type": "string<authentication_failed | insufficient_permissions | invalid_request | not_found>",
                "description": "Error code",
                "enum": [
                  "authentication_failed",
                  "insufficient_permissions",
                  "invalid_request",
                  "not_found"
                ]
              },
              {
                "name": "error_description",
                "kind": "required",
                "type": "string",
                "description": "<p>Human-readable error description</p>"
              },
              {
                "name": "required_scope",
                "kind": "optional",
                "type": "string",
                "description": "<p>Required OAuth2 scope (for permission errors)</p>"
              }
            ],
            "modelRef": "#/components/schemas/ErrorResponse",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "403",
        "description": "Insufficient permissions",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "customType": "ErrorResponse",
            "schema": [
              {
                "name": "error",
                "kind": "required",
                "type": "string<authentication_failed | insufficient_permissions | invalid_request | not_found>",
                "description": "Error code",
                "enum": [
                  "authentication_failed",
                  "insufficient_permissions",
                  "invalid_request",
                  "not_found"
                ]
              },
              {
                "name": "error_description",
                "kind": "required",
                "type": "string",
                "description": "<p>Human-readable error description</p>"
              },
              {
                "name": "required_scope",
                "kind": "optional",
                "type": "string",
                "description": "<p>Required OAuth2 scope (for permission errors)</p>"
              }
            ],
            "modelRef": "#/components/schemas/ErrorResponse",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "404",
        "description": "Notification not found or access denied",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "customType": "ErrorResponse",
            "schema": [
              {
                "name": "error",
                "kind": "required",
                "type": "string<authentication_failed | insufficient_permissions | invalid_request | not_found>",
                "description": "Error code",
                "enum": [
                  "authentication_failed",
                  "insufficient_permissions",
                  "invalid_request",
                  "not_found"
                ]
              },
              {
                "name": "error_description",
                "kind": "required",
                "type": "string",
                "description": "<p>Human-readable error description</p>"
              },
              {
                "name": "required_scope",
                "kind": "optional",
                "type": "string",
                "description": "<p>Required OAuth2 scope (for permission errors)</p>"
              }
            ],
            "modelRef": "#/components/schemas/ErrorResponse",
            "isExpanded": true
          }
        ]
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "YWVHbxCHuXkAzR2-BfmoF",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request DELETE \\\n     --url https://api.upstartcommerce.com/notifications/v1/notifications/{notificationId} \\\n     --header 'accept: application/json'"
        },
        {
          "id": "qZXXF4MDR5SR7wNPf6UO1",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\n\nvar requestOptions = {\n   method: 'DELETE',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"https://api.upstartcommerce.com/notifications/v1/notifications/{notificationId}\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "fb1WOHlXOzwyI59_8COpN",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://api.upstartcommerce.com/notifications/v1/notifications/{notificationId}\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Delete.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "AI1-nxamgqsnZHhw0WVue",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://api.upstartcommerce.com/notifications/v1/notifications/{notificationId}\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"DELETE\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "YWVHbxCHuXkAzR2-BfmoF"
    },
    "results": {
      "languages": [
        {
          "id": "njEIODOzGDbIpBswhgmjt",
          "language": "200",
          "code": "// Notification deleted successfully\n{\n  \"success\": false,\n  \"message\": \"\"\n}"
        },
        {
          "id": "gF1hgcXQj9Z6l0MBT_YSl",
          "language": "401",
          "code": "// Authentication failed\n{\n  \"error\": \"\",\n  \"error_description\": \"\",\n  \"required_scope\": \"\"\n}"
        },
        {
          "id": "0wQLaxJerkuVXoUFuQ2hP",
          "language": "403",
          "code": "// Insufficient permissions\n{\n  \"error\": \"\",\n  \"error_description\": \"\",\n  \"required_scope\": \"\"\n}"
        },
        {
          "id": "r6SmX9RuaGMvDRz5mb7dz",
          "language": "404",
          "code": "// Notification not found or access denied\n{\n  \"error\": \"\",\n  \"error_description\": \"\",\n  \"required_scope\": \"\"\n}"
        }
      ],
      "selectedLanguageId": "njEIODOzGDbIpBswhgmjt"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}