---
title: >-
  New error code added for the MetafieldDefinitionDelete mutation - Shopify
  developer changelog
description: >-
  Shopify’s developer changelog documents all changes to Shopify’s platform.
  Find the latest news and learn about new platform opportunities.
source_url:
  html: >-
    https://shopify.dev/changelog/new-error-code-added-for-the-metafielddefinitiondelete-mutation
  md: >-
    https://shopify.dev/changelog/new-error-code-added-for-the-metafielddefinitiondelete-mutation.md
metadata:
  effectiveApiVersion: 2024-07
  affectedApi:
    - displayName: Admin GraphQL API
      handle: admin-graphql
  primaryTag:
    displayName: API
    handle: api
  secondaryTag:
    displayName: New
    handle: new
  indicatesActionRequired: false
  createdAt: '2024-05-03T16:23:56-04:00'
  postedAt: '2024-05-08T14:39:00-04:00'
  updatedAt: '2024-05-06T09:39:20-04:00'
  effectiveAt: '2024-05-08T14:39:00-04:00'
---

May 8, 2024

Tags:

* Admin GraphQL API
* 2024-07

# New error code added for the MetafieldDefinitionDelete mutation

As of API version 2024-07, we've added the `RESERVED_NAMESPACE_ORPHANED_METAFIELDS` error code to the `metafieldDefinitionDelete` mutation. This error code is returned if you attempt to delete a definition in a reserved namespace without setting `deleteAllAssociatedMetafields` to true.
