---
title: AnalyticsTargetsDeleteUserError - GraphQL Admin
description: An error that occurs during the execution of `AnalyticsTargetsDelete`.
api_version: 2026-10
source_url:
  html: >-
    https://shopify.dev/docs/api/admin-graphql/latest/objects/AnalyticsTargetsDeleteUserError
  md: >-
    https://shopify.dev/docs/api/admin-graphql/latest/objects/AnalyticsTargetsDeleteUserError.md
api_name: admin
api_type: graphql
type: object
---

# Analytics​Targets​Delete​User​Error

object

An error that occurs during the execution of `AnalyticsTargetsDelete`.

## Fields

* code

  [Analytics​Targets​Delete​User​Error​Code](https://shopify.dev/docs/api/admin-graphql/latest/enums/AnalyticsTargetsDeleteUserErrorCode)

  The error code.

* field

  [\[String!\]](https://shopify.dev/docs/api/admin-graphql/latest/scalars/String)

  The path to the input field that caused the error.

* message

  [String!](https://shopify.dev/docs/api/admin-graphql/latest/scalars/String)

  non-null

  The error message.

***

## Map

No referencing types

***

## Mutations

* [analytics​Targets​Delete](https://shopify.dev/docs/api/admin-graphql/latest/mutations/analyticsTargetsDelete)

  mutation

  Deletes one or more [analytics targets](https://shopify.dev/docs/api/admin-graphql/latest/objects/AnalyticsTarget). Accepts a list of target IDs and returns the IDs that were successfully deleted. If any ID is not found, a user error is returned for that ID while the remaining valid targets are still deleted.

  Use [`analyticsTargetCreate`](https://shopify.dev/docs/api/admin-graphql/latest/mutations/analyticsTargetCreate) to create new targets, or [`analyticsTargetUpdate`](https://shopify.dev/docs/api/admin-graphql/latest/mutations/analyticsTargetUpdate) to modify existing ones.

  * ids

    [\[ID!\]!](https://shopify.dev/docs/api/admin-graphql/latest/scalars/ID)

    required

    ### Arguments

    The IDs of the analytics targets to delete.

  ***

***

## AnalyticsTargetsDeleteUserError Mutations

### Mutated by

* [analytics​Targets​Delete](https://shopify.dev/docs/api/admin-graphql/latest/mutations/analyticsTargetsDelete)

***

## Interfaces

* [Displayable​Error](https://shopify.dev/docs/api/admin-graphql/latest/interfaces/DisplayableError)

  interface

***

## AnalyticsTargetsDeleteUserError Implements

### Implements

* [Displayable​Error](https://shopify.dev/docs/api/admin-graphql/latest/interfaces/DisplayableError)
