---
title: Remove item
slug: document-api/remove-item
docTags: 
createdAt: 2025-10-20T09:39:14.636Z
---

{
  "id": "eDXT6lXwigZLO4KlD9eqa",
  "type": "api-oas-v2",
  "data": {
    "method": "DELETE",
    "url": "https://api.catenda.com/v2/projects/{project-id}/libraries/collections/{collection-id}/items",
    "servers": [
      {
        "url": "https://api.catenda.com/v2/projects/{project-id}/libraries/collections/{collection-id}/items"
      }
    ],
    "name": "Remove item",
    "description": "Remove a document library item collection item from the collection.",
    "contentType": "application/json",
    "request": {
      "pathParameters": [
        {
          "kind": "required",
          "name": "project-id",
          "type": "string",
          "example": "af2d8af0fa54465b89bf26dd3d92cfd0",
          "description": "Catenda project id"
        },
        {
          "kind": "required",
          "name": "collection-id",
          "type": "string",
          "description": "Id of the document library item collection"
        }
      ],
      "headerParameters": [],
      "queryParameters": [],
      "bodyDataParameters": [
        {
          "kind": "optional",
          "name": "body",
          "type": "object",
          "description": "",
          "schema": [
            {
              "name": "items",
              "kind": "required",
              "type": "array",
              "description": "List of library items ids of the items to remove from the collection.",
              "example": "",
              "itemType": "string",
              "customType": "string[]",
              "itemExample": "f9f534a6d26441gc85ffc686bacbc9e3",
              "itemDefault": ""
            }
          ],
          "isExpanded": true
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": [
        {
          "id": "Bearer",
          "name": "Bearer",
          "kind": "optional",
          "type": "http",
          "scheme": "bearer"
        }
      ],
      "cookieParameters": []
    },
    "responses": [
      {
        "statusCode": "204",
        "description": "No Content",
        "jsonExample": "",
        "isExpanded": true
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "RNpIETYxJx9rv6z5JF5G7",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request DELETE \\\n     --url https://api.catenda.com/v2/projects/{project-id}/libraries/collections/{collection-id}/items \\\n     --header 'accept: application/json' \\\n     --header 'content-type: application/json' \\\n     --data '{\n     \"items\": []\n     }'"
        },
        {
          "id": "WPzkKISi_4nVDFff8dofQ",
          "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   \"items\": []\n});\n\nvar requestOptions = {\n   method: 'DELETE',\n   headers: myHeaders,\n   body: raw,\n   redirect: 'follow'\n};\n\nfetch(\"https://api.catenda.com/v2/projects/{project-id}/libraries/collections/{collection-id}/items\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "HQ6kukDOZYaLqLLHWvOv_",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://api.catenda.com/v2/projects/{project-id}/libraries/collections/{collection-id}/items\")\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   \"items\": []\n})\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "tTAFnlLdaSemviZUWDgdX",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://api.catenda.com/v2/projects/{project-id}/libraries/collections/{collection-id}/items\"\n\npayload = json.dumps({\n   \"items\": []\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": "RNpIETYxJx9rv6z5JF5G7"
    },
    "results": {
      "languages": [
        {
          "id": "obAG9HOL-WM572ObReezI",
          "language": "204",
          "code": "// No Content\n"
        }
      ],
      "selectedLanguageId": "obAG9HOL-WM572ObReezI"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}