delete_meta_object
Delete a Meta campaign / ad set / ad destructive
Description
PERMANENTLY delete a campaign, ad set, or ad. Pass objectId (from list_meta_ads) + adAccountId. DELETING A CAMPAIGN ALSO DELETES EVERY AD SET AND AD UNDER IT, and deleting an ad set deletes its ads: Meta itself leaves them behind, so Hermoso deletes each ad, then each ad set, then the object, and reads every one back (deletedAds / deletedAdSets / verified say exactly what went). An ad creative that ads still use cannot be deleted until those ads are; the refusal names them (usedBy). Call it WITHOUT confirm first: it reports what the object is, its name, and how many children go with it. Show the user that, get an unambiguous yes, then call again with confirm:true plus confirmChildren set to the number it reported (only needed when there is at least one child). To stop delivery without deleting anything, use update_meta_object(status:"PAUSED") instead — that is reversible and this is not.
Parameters
| Parameter | Type | Description |
|---|---|---|
objectIdrequired | string | the campaign / ad set / ad id to delete |
adAccountIdrequired | string | ad account id (for auth + scope) |
confirm | boolean | REQUIRED true — deletion is permanent |
confirmChildren | number | the number of child ad sets + ads this delete also destroys, as reported by the unconfirmed call — required whenever that is above zero |
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_meta_object.
MCP (tools/call)
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"delete_meta_object","arguments":{"objectId":"<string>","adAccountId":"<string>"}}}
CLI
hermoso call delete_meta_object --json '{"objectId":"<string>","adAccountId":"<string>"}'
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.
Related tools
list_meta_adsList Meta campaigns / ad sets / adsupdate_meta_objectEdit a Meta campaign / ad set / addelete_linkedin_lead_subscriptionStop a LinkedIn lead webhookmanage_meta_postEdit or delete a published postlist_linkedin_lead_subscriptionsList LinkedIn lead webhookslist_linkedin_lead_eventsLinkedIn lead events received in real timesubscribe_linkedin_leadsTurn on real-time LinkedIn lead deliveryget_linkedin_leadRead one LinkedIn leadlist_linkedin_leadsList LinkedIn leads (form responses)list_linkedin_lead_formsList LinkedIn lead gen forms