abTestDeleteVariant
Permanently removes a variant from a DRAFT test; other statuses return an error. Use abTestRetireVariant on DRAFT
or RUNNING tests to keep the variant and its results. Request only stored fields such as id, name, and status
in the response. Requires A/B testing edit access.
abTestDeleteVariant(
id: Int!
variantId: Int!
): AbTest!
Arguments
abTestDeleteVariant.id ● Int! non-null scalar
Test id from abTestList, abTestRefList, or abTestCreate.
abTestDeleteVariant.variantId ● Int! non-null scalar
Numeric variant id from abTestRefList or abTestEditorDetail.variants; must belong to this test.
Type
AbTest object
A/B test settings and lifecycle returned by test lists, detail queries, and create/update operations.
Metrics are populated by list queries; use abTestResultCounts for goal/date-scoped results.