---
title: Deletes the catalog entry association.
slug: commerce-connect-15/service-api/3zE8-deletes-the-catalog-entry-association
docTags: 
createdAt: 2026-10-09T17:33:29.599Z
---

{
  "id": "ZbXiqtJ5mM8FflC_6HInF",
  "type": "api-oas-v2",
  "data": {
    "method": "DELETE",
    "url": "http://localhost:64424/episerverapi/commerce/entries/{entryCode}/associations/{name}",
    "servers": [
      {
        "url": "http://localhost:64424/episerverapi/commerce/entries/{entryCode}/associations/{name}"
      },
      {
        "url": "https://localhost:64424/episerverapi/commerce/entries/{entryCode}/associations/{name}"
      }
    ],
    "name": "Deletes the catalog entry association.",
    "description": "",
    "contentType": "application/json",
    "request": {
      "pathParameters": [
        {
          "kind": "required",
          "name": "entryCode",
          "type": "string",
          "description": "The entry code."
        },
        {
          "kind": "required",
          "name": "name",
          "type": "string",
          "description": "The association name."
        }
      ],
      "headerParameters": [
        {
          "name": "accept",
          "type": "string",
          "kind": "optional",
          "description": "Generated from available response content types",
          "enum": [
            "application/json"
          ],
          "default": "application/json"
        }
      ],
      "queryParameters": [],
      "bodyDataParameters": [],
      "formDataParameters": [],
      "oAuthParameters": [],
      "cookieParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "The catalog association is deleted.",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "customType": "EPiServer.ServiceApi.Commerce.Models.Catalog.Association",
            "schema": [
              {
                "name": "SortOrder",
                "kind": "optional",
                "type": "integer<int32>",
                "description": "Gets or sets the sort order.",
                "format": "int32"
              },
              {
                "name": "Name",
                "kind": "optional",
                "type": "string",
                "description": "Gets or sets the name of the association."
              },
              {
                "name": "CatalogEntryCode",
                "kind": "optional",
                "type": "string",
                "description": "Gets or sets the catalog entry code."
              },
              {
                "name": "Description",
                "kind": "optional",
                "type": "string",
                "description": "Gets or sets the description."
              },
              {
                "name": "EntryAssociations",
                "kind": "optional",
                "type": "array",
                "description": "Gets or sets the entry associations.",
                "modelRef": "#/components/schemas/EPiServer.ServiceApi.Commerce.Models.Catalog.EntryAssociation",
                "customType": "EPiServer.ServiceApi.Commerce.Models.Catalog.EntryAssociation[]",
                "schema": [
                  {
                    "name": "SortOrder",
                    "kind": "optional",
                    "type": "integer<int32>",
                    "description": "Gets or sets the sort order.",
                    "format": "int32"
                  },
                  {
                    "name": "Type",
                    "kind": "optional",
                    "type": "string",
                    "description": "Gets or sets the type of the association."
                  },
                  {
                    "name": "CatalogEntryCode",
                    "kind": "optional",
                    "type": "string",
                    "description": "Gets or sets the catalog entry code."
                  },
                  {
                    "name": "Entry",
                    "kind": "optional",
                    "type": "object",
                    "description": "Class that represents linkage and more information about models.",
                    "modelRef": "#/components/schemas/EPiServer.ServiceApi.Models.ResourceLink",
                    "customType": "EPiServer.ServiceApi.Models.ResourceLink",
                    "schema": [
                      {
                        "name": "Title",
                        "kind": "optional",
                        "type": "string",
                        "description": "Gets or sets the title."
                      },
                      {
                        "name": "Type",
                        "kind": "optional",
                        "type": "string",
                        "description": "Gets or sets the type."
                      },
                      {
                        "name": "Href",
                        "kind": "optional",
                        "type": "string",
                        "description": "Gets or sets the uri."
                      },
                      {
                        "name": "Properties",
                        "kind": "optional",
                        "type": "array",
                        "description": "Gets or sets the properties.",
                        "modelRef": "#/components/schemas/EPiServer.ServiceApi.Models.NameValue",
                        "customType": "EPiServer.ServiceApi.Models.NameValue[]",
                        "schema": [
                          {
                            "name": "Name",
                            "kind": "optional",
                            "type": "string",
                            "description": "Gets or sets the name."
                          },
                          {
                            "name": "Value",
                            "kind": "optional",
                            "type": "string",
                            "description": "Gets or sets the type."
                          }
                        ]
                      }
                    ]
                  }
                ]
              }
            ],
            "modelRef": "#/components/schemas/EPiServer.ServiceApi.Commerce.Models.Catalog.Association",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "401",
        "description": "If user does not have enough permission for this request.",
        "jsonExample": "",
        "isExpanded": true
      },
      {
        "statusCode": "404",
        "description": "If entry or association does not exist.",
        "jsonExample": "",
        "isExpanded": true
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "uX1dbrJQ4n2ncADzymfZC",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request DELETE \\\n     --url http://localhost:64424/episerverapi/commerce/entries/{entryCode}/associations/{name} \\\n     --header 'accept: application/json'"
        },
        {
          "id": "L8zojz3wCZQBy7XbKzgnd",
          "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(\"http://localhost:64424/episerverapi/commerce/entries/{entryCode}/associations/{name}\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "L3tiQiedw_s0gVrtSoLKT",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"http://localhost:64424/episerverapi/commerce/entries/{entryCode}/associations/{name}\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nrequest = Net::HTTP::Delete.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\n\nresponse = http.request(request)\nputs response.read_body\n"
        },
        {
          "id": "bxmUqyTZz-i4tnWlEQLLU",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"http://localhost:64424/episerverapi/commerce/entries/{entryCode}/associations/{name}\"\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": "uX1dbrJQ4n2ncADzymfZC"
    },
    "results": {
      "languages": [
        {
          "id": "response-0-200",
          "language": "200",
          "code": "// The catalog association is deleted.\n{\n  \"SortOrder\": \"\",\n  \"Name\": \"\",\n  \"CatalogEntryCode\": \"\",\n  \"Description\": \"\",\n  \"EntryAssociations\": [\n    {\n      \"SortOrder\": \"\",\n      \"Type\": \"\",\n      \"CatalogEntryCode\": \"\",\n      \"Entry\": {\n        \"Title\": \"\",\n        \"Type\": \"\",\n        \"Href\": \"\",\n        \"Properties\": [\n          {\n            \"Name\": \"\",\n            \"Value\": \"\"\n          }\n        ]\n      }\n    }\n  ]\n}"
        },
        {
          "id": "response-1-401",
          "language": "401",
          "code": "// If user does not have enough permission for this request.\n"
        },
        {
          "id": "response-2-404",
          "language": "404",
          "code": "// If entry or association does not exist.\n"
        }
      ],
      "selectedLanguageId": "response-0-200"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}