Strategy / TypeScript SDK
Delete gtm asset draft
Hard-delete only an unapproved, unbound GTM asset draft. Requires explicit confirmation.
pipeline.deleteGtmAssetDraftDeterministic operationParameters
workspaceIdRequired · string- See the input schema for this field.
kindRequired · string- See the input schema for this field.offer · lead_magnet
idRequired · string- See the input schema for this field.
confirmRequired · boolean- See the input schema for this field.
await pipeline.deleteGtmAssetDraft({
"workspaceId": "00000000-0000-4000-8000-000000000000",
"kind": "offer",
"id": "00000000-0000-4000-8000-000000000000",
"confirm": true
})Full input schema
{
"type": "object",
"properties": {
"workspaceId": {
"type": "string"
},
"kind": {
"type": "string",
"enum": [
"offer",
"lead_magnet"
]
},
"id": {
"type": "string"
},
"confirm": {
"type": "boolean",
"const": true
}
},
"required": [
"workspaceId",
"kind",
"id",
"confirm"
],
"additionalProperties": false
}