> ## Documentation Index
> Fetch the complete documentation index at: https://developers.redo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# trackingPageDelete

> Delete a tracking page and return its snapshot prior to deletion. Returns null if no owned tracking page matches.

**Required scopes:** [`tracking_pages_write`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-tracking_pages_write)

**Store must have one of:** `ORDER_TRACKING`

## Arguments

**id** `ID!` *required*

The tracking page's `id`, or its `legacyId` from the merchant app.

## Returns

**trackingPageDelete** `[TrackingPage](/docs/api-reference/v3/reference/marketing/tracking-page)`

A merchant order-tracking page that shoppers see when viewing shipment status.

**fields**

**blocks** `[JSON!](/docs/api-reference/v3/reference/common/json)` *required*

Grid blocks from settings.blocks. Shape is `trackingPageBlockSchema`.

**createdAt** `[DateTime](/docs/api-reference/v3/reference/common/date-time)`

When the tracking page was created.

**id** `ID!` *required*

The id of this tracking page.

**isDefault** `Boolean!` *required*

Stored default. A published tracking-page flow ignores this flag.

**legacyId** `String!` *required*

Mongo ObjectId from the merchant app.

**metrics** `[TrackingPageMetrics](/docs/api-reference/v3/reference/marketing/tracking-page-metrics)`

Opens, clicks, and attributed revenue for this tracking page over the date range.

**Requires:** [`tracking_pages_analytics_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-tracking_pages_analytics_read)

**fields**

**Arguments**

**attributionDays** `Int`

Days after the page view in which an order still counts. 1 through 5. Default 3.

**end** `[Date!](/docs/api-reference/v3/reference/common/date)` *required*

Last day to report on, inclusive, spanning at most 400 days.

**start** `[Date!](/docs/api-reference/v3/reference/common/date)` *required*

First day to report on, inclusive. Must be on or before `end`, spanning at most 400 days.

**Fields**

**clicks** `Int!` *required*

Clicks on interactive blocks recorded for this tracking page in the range.

**opens** `Int!` *required*

Page views recorded for this tracking page in the range.

**revenue** `[Money!](/docs/api-reference/v3/reference/common/money)` *required*

Sum of attributed order revenue in the store's currency.

**fields**

**amount** `[Decimal!](/docs/api-reference/v3/reference/common/decimal)` *required*

The exact amount as a decimal string (e.g. "19.99").

**currency** `String!` *required*

ISO 4217 currency code (e.g. USD).

**name** `String`

settings.name. Null when the page was saved without one. The app shows "Untitled Tracking Page".

**updatedAt** `[DateTime](/docs/api-reference/v3/reference/common/date-time)`

When the tracking page was last updated.

## Example

```graphql theme={null}
mutation {
  trackingPageDelete(id: "...") {
    blocks
    createdAt
    id
    isDefault
    legacyId
    name
    updatedAt
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.