Skip to main content

goalDelete

Soft-deletes a non-deleted goal and returns its id; goalRef and goalLinked still resolve it afterward. Also soft-deletes its triggers, detaches draft A/B tests that use it, deletes its other A/B tests and the funnels that use it, removes its notifications, and marks the tracking script for regeneration. Requires goal edit access.

goalDelete(
id: Int!
): GoalMutationResult!

Arguments​

goalDelete.id ● Int! non-null scalar​

Goal id from goalRefList or goalCardList.

Type​

GoalMutationResult object​

Id of the goal changed by goalCreate, goalEdit, goalRename, or goalDelete. Fetch the full goal with goalDetail, or with goalRef after deletion.