---
title: Delete Items
slug: delete-items
icon: {"faIcon":"fa-solid fa-code"}
createdAt: 2022-12-20T17:02:10.000Z
---

Unlike updating items on a recommendation - which uses the item spec - they are deleted by their unique id.See the **Recommendation Item Object** documention for details.

Multiple items can be passed in the array of item ids as a query parameter: `?id[]=...&id[]=...`

Items that do not exist will be siltently ignored.

## Return

This call returns the entire recommendation object from which the items were deleted.

:::ApiMethodV2
```json
{
  "tab": "examples",
  "url": "/V1/dispensary/recommendation/:recommendation_id/item",
  "name": "API",
  "method": "DELETE",
  "request": {
    "pathParameters": [
      {
        "kind": "required",
        "name": "recommendation_id",
        "type": "Integer",
        "children": [],
        "description": "The recommendation to which the item should be added."
      }
    ],
    "queryParameters": [
      {
        "kind": "required",
        "name": "id[]",
        "type": "Array",
        "children": [],
        "description": "One or more ids to be deleted."
      }
    ],
    "headerParameters": [
      {
        "kind": "required",
        "name": "Authorization",
        "type": "string",
        "children": [],
        "description": "The Access Token"
      }
    ],
    "bodyDataParameters": [
      {
        "kind": "required",
        "name": "items",
        "type": "Array",
        "children": [
          {
            "kind": "required",
            "name": "sku",
            "type": "Boolean",
            "description": "Item sku"
          },
          {
            "kind": "optional",
            "name": "qty",
            "type": "Boolean",
            "description": "Item quantity"
          },
          {
            "kind": "optional",
            "name": "note",
            "type": "string",
            "description": "A note for this recommendation"
          },
          {
            "kind": "optional",
            "name": "fulfillment_type",
            "type": "string",
            "description": "LC for in practice fulfillment\n1L for first time in practice fulfillment on subscriptions"
          },
          {
            "kind": "optional",
            "name": "autoship_interval",
            "type": "string",
            "description": "For subscription recommendations. See The Recommendation Item Object spec for details."
          }
        ],
        "description": "Array of unique item ids."
      }
    ],
    "formDataParameters": []
  },
  "results": {
    "languages": [
      {
        "id": "sT7x5eCla7VJy6tWNaRmD",
        "code": "{\n    \"recommendation_id\": \"6e6e08cf-e2a0-4e0e-9359-e2e42896b56e\",\n    \"note\": \"Overall recommendation notes\",\n    \"status\": \"pending\",\n    \"patient\": {\n        \"patient_id\": 71,\n        \"firstname\": \"Juergen\",\n        \"lastname\": \"Schreck\",\n        \"email\": \"juergen+uat@gethealthy.store\"\n    },\n    \"practice_id\": 1,\n    \"notify_email\": 1,\n    \"notify_sms\": 0,\n    \"practice_conversion_url\": \"https://uat.gethealthy.store/admin/dispensary/recommendation/convert/rid/6e6e08cf-e2a0-4e0e-9359-e2e42896b56e/\",\n    \"patient_conversion_url\": \"https://uat.gethealthy.store/dispensary/recommendation/convert/rid/6e6e08cf-e2a0-4e0e-9359-e2e42896b56e/\"      \n    \"items\": [\n        {\n            \"item_id\": \"54dddeea-19d6-4914-8b52-4064f050737c\",\n            \"sku\": \"SF811\",\n            \"qty\": 1,\n            \"autoship_interval\": \"once\",\n            \"fulfillment_type\": \"LC\",\n            \"note\": \"Item specific Note\",\n            \"additional_options\":[],\n            \"availability\": \"In Stock\"\n        },\n        {\n            \"item_id\": \"179a7ef1-e1c7-42a2-a468-bd50dbee71f8\",\n            \"sku\": \"SP607\",\n            \"qty\": 2,\n            \"autoship_interval\": \"30d\",\n            \"fulfillment_type\": \"1L\",\n            \"note\": \"This is really good stuff\",\n            \"availability\": \"In Stock\",\n            \"additional_options\":[]\n        }\n    ]\n}",
        "language": "200",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "sT7x5eCla7VJy6tWNaRmD"
  },
  "examples": {
    "languages": [
      {
        "id": "-7YQMYaX6G137VaNm1FNO",
        "code": "curl --location -g --request PUT 'https://{{api_host}}/rest/{{scope}}/V1/dispensary/recommendation/6e6e08cf-e2a0-4e0e-9359-e2e42896b56/item?id[]=54dddeea-19d6-4914-8b52-4064f050737c' \\\n--header 'Content-Type: application/json' \\\n--header 'Authorization: Bearer {{access_token}}' ",
        "language": "curl",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "-7YQMYaX6G137VaNm1FNO"
  },
  "description": "",
  "currentNewParameter": {
    "label": "Query Parameter",
    "value": "queryParameters"
  },
  "autoGeneratedAnchorSlug": "api",
  "legacyHash": "SqzjFv70KmmYJSrnE8RbA"
}
```
:::

