--- title: cartMetafieldDelete - Storefront API description: Deletes a cart metafield. api_version: 2025-01 api_name: storefront type: mutation api_type: graphql source_url: html: >- https://shopify.dev/docs/api/storefront/2025-01/mutations/cartMetafieldDelete md: >- https://shopify.dev/docs/api/storefront/2025-01/mutations/cartMetafieldDelete.md --- # cart​Metafield​Delete mutation Deletes a cart metafield. ## Arguments * input [Cart​Metafield​Delete​Input!](https://shopify.dev/docs/api/storefront/2025-01/input-objects/CartMetafieldDeleteInput) required The input fields used to delete a cart metafield. *** ## Cart​Metafield​Delete​Payload returns * deleted​Id [ID](https://shopify.dev/docs/api/storefront/2025-01/scalars/ID) The ID of the deleted cart metafield. * user​Errors [\[Metafield​Delete​User​Error!\]!](https://shopify.dev/docs/api/storefront/2025-01/objects/MetafieldDeleteUserError) non-null The list of errors that occurred from executing the mutation. *** ## Examples * ### cartMetafieldDelete reference ## Mutation Reference ```graphql mutation cartMetafieldDelete($input: CartMetafieldDeleteInput!) { cartMetafieldDelete(input: $input) { deletedId userErrors { field message } } } ``` ## Input ##### Variables ```json { "input": { "ownerId": "gid://shopify//10079785100", "key": "" } } ``` ##### Schema ```graphql input CartMetafieldDeleteInput { ownerId: ID! key: String! } ```