> This page is for Developer.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.bigcommerce.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.bigcommerce.com/_mcp/server.

# deleteCartMetafield

GraphQL MUTATION

Deletes a metafield for cart object.

Reference: https://docs.bigcommerce.com/developer/api-reference/graphql/storefront/mutations/cart/delete-cart-metafield

## GraphQL Schema

```graphql
mutation ExampleMutation($input: DeleteCartMetafieldInput!) {
  cart {
    deleteCartMetafield(input: $input) {
      deletedMetafieldEntityId
      errors
    }
  }
}
```

## Variables

```json
{
  "input": {
    "cartEntityId": "example",
    "metafieldEntityId": 0
  }
}
```