---
title: AnalyticsTargetsDeletePayload - GraphQL Admin
description: Return type for `analyticsTargetsDelete` mutation.
api_version: 2026-10
source_url:
  html: >-
    https://shopify.dev/docs/api/admin-graphql/latest/payloads/AnalyticsTargetsDeletePayload
  md: >-
    https://shopify.dev/docs/api/admin-graphql/latest/payloads/AnalyticsTargetsDeletePayload.md
api_name: admin
api_type: graphql
type: payload
---

# Analytics​Targets​Delete​Payload

payload

Return type for `analyticsTargetsDelete` mutation.

## Fields

* deleted​Ids

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

  The IDs of the deleted analytics targets.

* user​Errors

  [\[Analytics​Targets​Delete​User​Error!\]!](https://shopify.dev/docs/api/admin-graphql/latest/objects/AnalyticsTargetsDeleteUserError)

  non-null

  The list of errors that occurred from executing the mutation.

***

## Mutations with this payload

* [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.

  ***

***

## Map

### Mutations with this payload

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