# Hermoso: delete_microsoft_ads_object · Hermoso developer docs

> Machine-readable twin of https://hermoso.ai/docs/reference/ads/delete_microsoft_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_microsoft_ads_object

# `delete_microsoft_ads_object`

Delete a Microsoft Advertising campaign / ad group / ad / keyword destructive

Area: MICROSOFT AD INSIGHT · [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

PERMANENTLY delete a Microsoft Advertising campaign, ad group, ad or keyword. This is a real delete — Microsoft removes the object and it stops being returned by every read, with no undelete and no documented recovery window. Pass level:"campaign" + campaignId, level:"adGroup" + adGroupId, level:"ad" + adGroupId AND adId, or level:"keyword" + adGroupId AND keywordId. CALL IT WITHOUT confirm FIRST: nothing is deleted, and you get back the object’s real name, its status and how many ad groups / ads / keywords go with it, read live from Microsoft — show the user exactly that. If the object has children, is Active, or has spent, confirming alone is NOT enough: you must also pass confirmName set to its exact name and confirmChildren set to the child count from that read-back, which is what proves you are deleting the object you think you are. A campaign that is paused, empty and never ran deletes on plain confirm:true. To stop delivery WITHOUT deleting, use set_microsoft_ads_status(status:"Paused") instead. The result is READ BACK from Microsoft: it says "deleted" only when the object no longer resolves, "not confirmed" if it does, and "could not tell" if the check itself failed — repeat that verbatim rather than claiming success.

## Parameters

Parameter Type Description

`adAccountId` `string` Microsoft ad account id — omit to use the single shared account

`accountId` `string` older name for adAccountId (MCP only)

`level` `"campaign" | "adGroup" | "ad" | "keyword"` what to delete — default campaign

`campaignId` `string` campaign id (level:"campaign"; also the parent for level:"adGroup" if you know it)

`adGroupId` `string` ad group id (level:"adGroup"; REQUIRED as the parent for level:"ad" and level:"keyword")

`adId` `string` ad id (level:"ad" — pass adGroupId too)

`keywordId` `string` keyword id (level:"keyword" — pass adGroupId too)

`confirm` `boolean` REQUIRED true — the delete is permanent

`confirmName` `string` the object’s EXACT name, required when it has children / is Active / has spent

`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_microsoft_ads_object`.

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

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

`hermoso call delete_microsoft_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_microsoft_ads_status](https://hermoso.ai/docs/reference/ads/set_microsoft_ads_status/) Activate or pause a Microsoft Advertising campaign / ad group / ad
- [set_microsoft_ads_budget](https://hermoso.ai/docs/reference/ads/set_microsoft_ads_budget/) Set a Microsoft Advertising daily budget
- [set_microsoft_ads_profile_targeting](https://hermoso.ai/docs/reference/ads/set_microsoft_ads_profile_targeting/) Set LinkedIn profile targeting on a Microsoft Advertising campaign
- [list_microsoft_ads_profile_targeting](https://hermoso.ai/docs/reference/ads/list_microsoft_ads_profile_targeting/) Read a Microsoft Advertising campaign’s LinkedIn profile targeting
- [search_microsoft_ads_profiles](https://hermoso.ai/docs/reference/ads/search_microsoft_ads_profiles/) Find Microsoft Advertising LinkedIn profile ids
- [add_microsoft_ads_keywords](https://hermoso.ai/docs/reference/ads/add_microsoft_ads_keywords/) Add Microsoft Advertising keywords
- [create_microsoft_ads_ad](https://hermoso.ai/docs/reference/ads/create_microsoft_ads_ad/) Create a Microsoft responsive search ad
- [create_microsoft_ads_ad_group](https://hermoso.ai/docs/reference/ads/create_microsoft_ads_ad_group/) Add a Microsoft Advertising ad group
- [create_microsoft_ads_campaign](https://hermoso.ai/docs/reference/ads/create_microsoft_ads_campaign/) Build a Microsoft Advertising campaign (paused)
- [microsoft_ads_geo_search](https://hermoso.ai/docs/reference/ads/microsoft_ads_geo_search/) Find Microsoft Advertising location ids

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