---
title: Delete Multiple Layouts
slug: delete-multiple-layouts
docTags: 
createdAt: 2026-08-25T19:28:59.170Z
---

{
  "id": "Nr57Kp-REihoftF4V7B1W",
  "type": "api-oas-v2",
  "data": {
    "method": "DELETE",
    "url": "https://api.nue.io/metadata/layouts",
    "servers": [
      {
        "url": "https://api.nue.io/metadata/layouts",
        "description": "Nue Production API Endpoint"
      },
      {
        "url": "https://api.sandbox.nue.io/metadata/layouts",
        "description": "Nue Sandbox API Endpoint"
      }
    ],
    "name": "Delete Multiple Layouts",
    "description": "Delete multiple layouts by providing their API names in a batch operation.",
    "contentType": "application/json",
    "request": {
      "pathParameters": [],
      "headerParameters": [
        {
          "name": "accept",
          "type": "string",
          "kind": "optional",
          "description": "Generated from available response content types",
          "enum": [
            "application/json"
          ],
          "default": "application/json"
        }
      ],
      "queryParameters": [],
      "bodyDataParameters": [
        {
          "kind": "required",
          "name": "body",
          "type": "object",
          "description": "The request to delete layouts",
          "customType": "BatchLayoutsApiNameRequest",
          "schema": [
            {
              "name": "layoutsApiName",
              "kind": "required",
              "type": "array",
              "description": "",
              "example": "",
              "itemType": "string",
              "customType": "string[]",
              "itemExample": "",
              "itemDefault": ""
            }
          ],
          "modelRef": "#/components/schemas/BatchLayoutsApiNameRequest",
          "isExpanded": true
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": [
        {
          "id": "apiKeyAuth",
          "name": "nue-api-key",
          "kind": "optional",
          "type": "apiKey",
          "in": "header"
        }
      ],
      "cookieParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "OK",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "customType": "LayoutResponse",
            "schema": [
              {
                "name": "status",
                "kind": "optional",
                "type": "string<Succeeded | Failed>",
                "description": "",
                "enum": [
                  "Succeeded",
                  "Failed"
                ]
              },
              {
                "name": "message",
                "kind": "optional",
                "type": "string",
                "description": ""
              }
            ],
            "modelRef": "#/components/schemas/LayoutResponse",
            "isExpanded": true
          }
        ]
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "9t1KTZ70i-uJL3yTN1mrj",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request DELETE \\\n     --url https://api.nue.io/metadata/layouts \\\n     --header 'accept: application/json' \\\n     --header 'content-type: application/json' \\\n     --data '{\n     \"layoutsApiName\": []\n     }'"
        },
        {
          "id": "IoUbVuweCBrWxF25yYVxg",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\n\nvar raw = JSON.stringify({\n   \"layoutsApiName\": []\n});\n\nvar requestOptions = {\n   method: 'DELETE',\n   headers: myHeaders,\n   body: raw,\n   redirect: 'follow'\n};\n\nfetch(\"https://api.nue.io/metadata/layouts\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "qUp7FP5dpERNzrXzeuCPm",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://api.nue.io/metadata/layouts\")\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\"\nrequest.body = JSON.dump({\n   \"layoutsApiName\": []\n})\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "GCBMFfb3YqPQt4Wr_lRjT",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://api.nue.io/metadata/layouts\"\n\npayload = json.dumps({\n   \"layoutsApiName\": []\n})\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": "9t1KTZ70i-uJL3yTN1mrj"
    },
    "results": {
      "languages": [
        {
          "id": "_SbsrhBZZ4fOJOq5hmaTt",
          "language": "200",
          "code": "// OK\n{\n  \"status\": \"\",\n  \"message\": \"\"\n}"
        }
      ],
      "selectedLanguageId": "_SbsrhBZZ4fOJOq5hmaTt"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}