Actions16
Delete Campaign
AI-generatedSummary
Delete a link campaign by its Campaign ID with an optional detach of associated links beforehand to allow deletion when links are still using the campaign.
Inputs
- Campaign ID (required) — The ID of the campaign to delete.
- Detach Links — Whether to detach all links from the campaign before attempting deletion. If false and links still use the campaign, deletion will be refused.
- Version (required) — The version number (
__v) of the campaign item as read previously, used for concurrency control. If the campaign changed since reading, the operation will fail with a conflict error. Typically obtained from a prior Get Campaign step. - Version Options — Options controlling behavior in case the Version is not provided or unknown, such as failing or using the latest version automatically, to handle concurrency conflicts.
Output shape
a single record representing the deleted campaign or a confirmation of deletion
The operation returns the deletion confirmation or the deleted campaign object. It requires a valid Campaign ID and correct versioning for concurrency. If the 'Detach Links' option is false and links still use the campaign, the API will refuse to delete the campaign. Use the Version field from a prior Get Campaign step to avoid overwrite conflicts. If Version is missing or unknown, behavior depends on Version Options settings.