hermosodocs

delete_meta_object

Delete a Meta campaign / ad set / ad destructive

Area: LINKEDIN LEAD SYNC · Publishing & scheduling. Generated from the running MCP server, like the rest of the tool reference.

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

ParameterTypeDescription
objectIdrequiredstringthe campaign / ad set / ad id to delete
adAccountIdrequiredstringad account id (for auth + scope)
confirmbooleanREQUIRED true — deletion is permanent
confirmChildrennumberthe 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.

All 728 Publishing & scheduling tools · tools.json