---
title: Deletes the catalog common draft.
slug: commerce-connect-15/service-api/l4Tg-deletes-the-catalog-common-draft
docTags: 
createdAt: 2026-10-09T17:33:31.176Z
---

{
  "id": "a3Cyxw1jMhfKAP7IsZSIY",
  "type": "api-oas-v2",
  "data": {
    "method": "DELETE",
    "url": "http://localhost:64424/episerverapi/commerce/catalogs/{catalogName}/commondraft/{lang}",
    "servers": [
      {
        "url": "http://localhost:64424/episerverapi/commerce/catalogs/{catalogName}/commondraft/{lang}"
      },
      {
        "url": "https://localhost:64424/episerverapi/commerce/catalogs/{catalogName}/commondraft/{lang}"
      }
    ],
    "name": "Deletes the catalog common draft.",
    "description": "",
    "contentType": "application/json",
    "request": {
      "pathParameters": [
        {
          "kind": "required",
          "name": "catalogName",
          "type": "string",
          "description": "The catalog name."
        },
        {
          "kind": "required",
          "name": "lang",
          "type": "string",
          "description": "The language code."
        }
      ],
      "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 common draft is deleted.",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "schema": [],
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "401",
        "description": "If user does not have enough permission for this request.",
        "jsonExample": "",
        "isExpanded": true
      },
      {
        "statusCode": "404",
        "description": "If catalog common draft does not exist.",
        "jsonExample": "",
        "isExpanded": true
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "_Vh9FyrKuL_Vo3_kwFf3y",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request DELETE \\\n     --url http://localhost:64424/episerverapi/commerce/catalogs/{catalogName}/commondraft/{lang} \\\n     --header 'accept: application/json'"
        },
        {
          "id": "tTEQgN5JzeOTgnM-tOL_5",
          "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/catalogs/{catalogName}/commondraft/{lang}\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "Hu41TbHwl3_qWdnDPE2wW",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"http://localhost:64424/episerverapi/commerce/catalogs/{catalogName}/commondraft/{lang}\")\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": "age2O-Orphx1ehbjGzE0r",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"http://localhost:64424/episerverapi/commerce/catalogs/{catalogName}/commondraft/{lang}\"\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": "_Vh9FyrKuL_Vo3_kwFf3y"
    },
    "results": {
      "languages": [
        {
          "id": "response-0-200",
          "language": "200",
          "code": "// The catalog common draft is deleted.\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 catalog common draft does not exist.\n"
        }
      ],
      "selectedLanguageId": "response-0-200"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}