---
title: "Delete ad preview records for one or more ad groups"
method: DELETE
path: "/ad_accounts/{ad_account_id}/campaign_ad_preview"
tags: ["ads"]
---

# Delete ad preview records for one or more ad groups

`DELETE /ad_accounts/{ad_account_id}/campaign_ad_preview`

## Request

- Base URL: `https://api.pinterest.com/v5`
- URL: `https://api.pinterest.com/v5/ad_accounts/{ad_account_id}/campaign_ad_preview`
- Auth: OAuth 2
  - Authorization code: `https://www.pinterest.com/oauth/`
  - Token URL: `https://api.pinterest.com/v5/oauth/token` scopes: `ads:write`
- TypeScript: <https://skmtc.dev/pinterest/apis/pinterest-rest-api/docs/ad_accounts/:ad_account_id/campaign_ad_preview/delete.ts> (a function with typed inputs; its response is checked against the schema)

Delete ad preview records for one or more ad groups.
All ad groups are validated before deleting any records.

## Path parameters

- `ad_account_id` string, required

## Query parameters

- `ad_group_ids` AdGroupIdType[], required

## Response `200`

The request has succeeded.

- object[]
  - `status` union, required
    - PinterestLibStatus204: The resource was successfully deleted.
      - `statusCode` 204, required
    - PinterestLibError: Default error response
      - `code` integer, required
      - `message` string, required

## Other responses

- `204`: Resource deleted successfully.
- `400`: The request could not be understood by the server due to unexpected data.
- `401`: Authentication is required and has either failed or not been provided.
- `403`: The request was valid, but the server is refusing action. The user might not have the necessary permissions for a resource.
- `404`: The requested resource could not be found on this server.
- `429`: The user has sent too many requests in a given amount of time and is being rate limited.
- `default`: An unexpected error response.

## Changes

- **2026-06-04** (v5) `b698c180678a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/pinterest/apis/pinterest-rest-api/changes/ad_accounts/:ad_account_id/campaign_ad_preview/delete.md)

---

[API](https://skmtc.dev/pinterest/apis/pinterest-rest-api.md) - [All operations](https://skmtc.dev/pinterest/apis/pinterest-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/pinterest/apis/pinterest-rest-api/revisions/b698c180678a?raw)
