Delete entity
x_ads_deleteSoft-delete campaigns, line items, or promoted tweets, including child objects. Requires explicit user confirmation before any deletion proceeds.
Instructions
SOFT-delete CAMPAIGN, LINE_ITEM, or PROMOTED_TWEET. Children go with the parent. Cannot be undone here. Deleting an ad does not delete the post. confirm=true after the user named the exact entity. Never inferred.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"account_id": "<account_id>",
"entity": "<entity>",
"entity_id": "<entity_id>"
},
"name": "x_ads_delete"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entity | Yes | ||
| confirm | No | ||
| entity_id | Yes | ||
| account_id | Yes | Ads API account id from x_ads_list_accounts, e.g. 18ce55v2od2 |