# Hermoso: delete_openai_ads_object · Hermoso developer docs

> Machine-readable twin of https://hermoso.ai/docs/reference/ads/delete_openai_ads_object/. Generated from the shipped page. Do not edit by hand.
> Full agent guide: https://hermoso.ai/llms.txt · MCP: https://app.hermoso.ai/mcp

[Docs](https://hermoso.ai/docs/) / [Tool reference](https://hermoso.ai/docs/reference/) / [Ad campaign management](https://hermoso.ai/docs/reference/ads/) / delete_openai_ads_object

# `delete_openai_ads_object`

Archive (ChatGPT Ads’ delete) a campaign / ad group / ad destructive

Area: X ADS CUSTOM AUDIENCES + CONVERSION API · [Ad campaign management](https://hermoso.ai/docs/reference/ads/). Generated from the running MCP server, like the rest of the [tool reference](https://hermoso.ai/docs/reference/).

## Description

Retire a ChatGPT Ads campaign, ad group or ad. THE OPENAI ADVERTISER API HAS NO DELETE — archiving is its only teardown, and OpenAI’s own guidance is "only archive objects you have no further use for, as archiving isn’t reversible": there is no un-archive, not even through support. So say ARCHIVED, never "deleted". Pass level:"campaign" + campaignId, level:"adGroup" + adGroupId, or level:"ad" + adId. CALL IT WITHOUT confirm FIRST — nothing is archived and you get the object’s real name, status and child count read live from OpenAI; show the user exactly that. A target with children or live delivery additionally needs confirmName (its exact name) and confirmChildren (the count from that read-back). PAUSING stops all spend and keeps the object editable — offer that first whenever the user only wants delivery to stop. Archiving a campaign is not documented to cascade, so archive the children yourself if they should stop too. The result is READ BACK: it says archived only when OpenAI reports the archived status.

## Parameters

Parameter Type Description

`level` `"campaign" | "adGroup" | "ad"` what to archive — default campaign

`campaignId` `string` campaign id to archive; use with level campaign

`adGroupId` `string` ad group id to archive; use with level adGroup

`adId` `string` ad id to archive; use with level ad

`confirm` `boolean` REQUIRED true — archiving cannot be undone

`confirmName` `string` the object’s EXACT name, required when it has children or is live

`confirmChildren` `number` the exact number of children reported by the unconfirmed call, required when it has any

## Example call

Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and `POST https://app.hermoso.ai/v1/tools/delete_openai_ads_object`.

**MCP** (`tools/call`)

`{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"delete_openai_ads_object","arguments":{}}}`
**CLI**

`hermoso call delete_openai_ads_object --json '{}'`

## Credits

Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See [Credits & costs](https://hermoso.ai/docs/credits/).

## Related tools

- [set_openai_ads_status](https://hermoso.ai/docs/reference/ads/set_openai_ads_status/) Activate, pause or archive a ChatGPT Ads account / campaign / ad group / ad
- [update_openai_ads_account](https://hermoso.ai/docs/reference/ads/update_openai_ads_account/) Update the ChatGPT Ads account (brand / account / legal name, URL, favicon)
- [create_openai_ads_conversion_api_key](https://hermoso.ai/docs/reference/ads/create_openai_ads_conversion_api_key/) Create a ChatGPT Ads Conversions API key
- [send_openai_ads_conversions](https://hermoso.ai/docs/reference/ads/send_openai_ads_conversions/) Send server-side conversion events to ChatGPT Ads
- [preview_openai_ads_ad](https://hermoso.ai/docs/reference/ads/preview_openai_ads_ad/) Preview a ChatGPT Ads ad
- [openai_ads_conversions](https://hermoso.ai/docs/reference/ads/openai_ads_conversions/) ChatGPT Ads attributed conversions
- [set_openai_ads_budget](https://hermoso.ai/docs/reference/ads/set_openai_ads_budget/) Set a ChatGPT Ads campaign budget
- [update_openai_ads_object](https://hermoso.ai/docs/reference/ads/update_openai_ads_object/) Edit a ChatGPT Ads campaign / ad group / ad
- [update_openai_ads_feed_products](https://hermoso.ai/docs/reference/ads/update_openai_ads_feed_products/) Update ChatGPT Ads product-feed variants
- [openai_ads_bulk_job](https://hermoso.ai/docs/reference/ads/openai_ads_bulk_job/) Read a ChatGPT Ads bulk job

[All 759 Ad campaign management tools](https://hermoso.ai/docs/reference/ads/) · [tools.json](https://hermoso.ai/docs/reference/tools.json)
