--- title: analyticsTargetsDelete - GraphQL Admin description: Deletes one or more analytics targets. api_version: unstable api_name: admin source_url: html: >- https://shopify.dev/docs/api/admin-graphql/unstable/mutations/analyticsTargetsDelete md: >- https://shopify.dev/docs/api/admin-graphql/unstable/mutations/analyticsTargetsDelete.md --- # analytics​Targets​Delete mutation Requires `write_reports` access scope. Deletes one or more analytics targets. ## Arguments * ids [\[ID!\]!](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/ID) required The IDs of the analytics targets to delete. *** ## Analytics​Targets​Delete​Payload returns * deleted​Ids [\[ID!\]](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/ID) The IDs of the deleted analytics targets. * user​Errors [\[Analytics​Targets​Delete​User​Error!\]!](https://shopify.dev/docs/api/admin-graphql/unstable/objects/AnalyticsTargetsDeleteUserError) non-null The list of errors that occurred from executing the mutation. *** ## Examples * ### analyticsTargetsDelete reference