--- title: inventoryShipmentRemoveItems - GraphQL Admin description: Remove items from an inventory shipment. api_version: 2025-10 api_name: admin type: mutation api_type: graphql source_url: html: https://shopify.dev/docs/api/admin-graphql/latest/mutations/inventoryshipmentremoveitems md: https://shopify.dev/docs/api/admin-graphql/latest/mutations/inventoryshipmentremoveitems.md --- # inventory​Shipment​Remove​Items mutation Requires `write_inventory_shipments` access scope. Also: The user must have permission to manage inventory. Remove items from an inventory shipment. ## Arguments * id [ID!](https://shopify.dev/docs/api/admin-graphql/latest/scalars/ID) required The ID of the inventory shipment to remove items from. * line​Items [\[ID!\]!](https://shopify.dev/docs/api/admin-graphql/latest/scalars/ID) required A list of inventory shipment line item ids representing the items to be removed from the shipment. *** ## Inventory​Shipment​Remove​Items​Payload returns * inventory​Shipment [Inventory​Shipment](https://shopify.dev/docs/api/admin-graphql/latest/objects/InventoryShipment) The inventory shipment with items removed. * user​Errors [\[Inventory​Shipment​Remove​Items​User​Error!\]!](https://shopify.dev/docs/api/admin-graphql/latest/objects/InventoryShipmentRemoveItemsUserError) non-null The list of errors that occurred from executing the mutation. *** ## Examples * ### inventoryShipmentRemoveItems reference ## Mutation Reference ```graphql mutation inventoryShipmentRemoveItems($id: ID!, $lineItems: [ID!]!) { inventoryShipmentRemoveItems(id: $id, lineItems: $lineItems) { inventoryShipment { # InventoryShipment fields } userErrors { field message } } } ``` ## Input ```json { "id": "gid://shopify//10079785100", "lineItems": [ "gid://shopify//10079785100" ] } ``` ##### Variables ``` { "id": "gid://shopify//10079785100", "lineItems": [ "gid://shopify//10079785100" ] } ```