--- title: cartGiftCardCodesRemove - Storefront API description: Removes the gift card codes applied to the cart. api_version: 2025-10 api_name: storefront type: mutation api_type: graphql source_url: html: https://shopify.dev/docs/api/storefront/latest/mutations/cartGiftCardCodesRemove md: https://shopify.dev/docs/api/storefront/latest/mutations/cartGiftCardCodesRemove.md --- # cart​Gift​Card​Codes​Remove mutation Removes the gift card codes applied to the cart. ## Arguments * applied​Gift​Card​Ids [\[ID!\]!](https://shopify.dev/docs/api/storefront/latest/scalars/ID) required The gift cards to remove. The input must not contain more than `250` values. * cart​Id [ID!](https://shopify.dev/docs/api/storefront/latest/scalars/ID) required The ID of the cart. *** ## Cart​Gift​Card​Codes​Remove​Payload returns * cart [Cart](https://shopify.dev/docs/api/storefront/latest/objects/Cart) The updated cart. * user​Errors [\[Cart​User​Error!\]!](https://shopify.dev/docs/api/storefront/latest/objects/CartUserError) non-null The list of errors that occurred from executing the mutation. * warnings [\[Cart​Warning!\]!](https://shopify.dev/docs/api/storefront/latest/objects/CartWarning) non-null A list of warnings that occurred during the mutation. *** ## Examples * ### cartGiftCardCodesRemove reference ## Mutation Reference ```graphql mutation cartGiftCardCodesRemove($cartId: ID!, $appliedGiftCardIds: [ID!]!) { cartGiftCardCodesRemove(cartId: $cartId, appliedGiftCardIds: $appliedGiftCardIds) { cart { # Cart fields } userErrors { field message } warnings { # CartWarning fields } } } ``` ## Input ```json { "cartId": "gid://shopify//10079785100", "appliedGiftCardIds": [ "gid://shopify//10079785100" ] } ``` ##### Variables ``` { "cartId": "gid://shopify//10079785100", "appliedGiftCardIds": [ "gid://shopify//10079785100" ] } ```