--- title: metafieldStorefrontVisibilityDelete - GraphQL Admin description: >- Deletes a `MetafieldStorefrontVisibility` record. All metafields that belongs to the specified record will no longer be visible in the Storefront API. api_version: 2024-10 api_name: admin type: mutation api_type: graphql source_url: html: >- https://shopify.dev/docs/api/admin-graphql/2024-10/mutations/metafieldStorefrontVisibilityDelete md: >- https://shopify.dev/docs/api/admin-graphql/2024-10/mutations/metafieldStorefrontVisibilityDelete.txt --- # metafield​Storefront​Visibility​Delete mutation Requires API client to have access to the owner type and namespace. Deprecated. This mutation will be removed in 2025-01. Use the [metafieldDefinitionUpdate](https://shopify.dev/docs/api/admin-graphql/latest/mutations/metafieldDefinitionUpdate) mutation with [access.storefront](https://shopify.dev/docs/api/admin-graphql/latest/mutations/access.storefront) set instead. Deletes a `MetafieldStorefrontVisibility` record. All metafields that belongs to the specified record will no longer be visible in the Storefront API. ## Arguments * id [ID!](https://shopify.dev/docs/api/admin-graphql/2024-10/scalars/ID) required The ID of the `MetafieldStorefrontVisibility` record to delete. *** ## Metafield​Storefront​Visibility​Delete​Payload returns * deleted​Metafield​Storefront​Visibility​Id [ID](https://shopify.dev/docs/api/admin-graphql/2024-10/scalars/ID) The ID of the deleted `MetafieldStorefrontVisibility` record. * user​Errors [\[User​Error!\]!](https://shopify.dev/docs/api/admin-graphql/2024-10/objects/UserError) non-null The list of errors that occurred from executing the mutation. *** ## Examples * ### metafieldStorefrontVisibilityDelete reference ## Mutation Reference ```graphql mutation metafieldStorefrontVisibilityDelete($id: ID!) { metafieldStorefrontVisibilityDelete(id: $id) { deletedMetafieldStorefrontVisibilityId userErrors { field message } } } ``` ## Input ```json { "id": "gid://shopify//10079785100" } ```