--- title: subscriptionDraftLineRemove - GraphQL Admin description: Removes a subscription line from a subscription draft. api_version: 2025-10 api_name: admin type: mutation api_type: graphql source_url: html: https://shopify.dev/docs/api/admin-graphql/latest/mutations/subscriptiondraftlineremove md: https://shopify.dev/docs/api/admin-graphql/latest/mutations/subscriptiondraftlineremove.md --- # subscription​Draft​Line​Remove mutation Requires `write_own_subscription_contracts` access scope. Also: The user must have manage\_orders\_information permission. Removes a subscription line from a subscription draft. ## Arguments * draft​Id [ID!](https://shopify.dev/docs/api/admin-graphql/latest/scalars/ID) required The gid of the Subscription Contract draft to remove a subscription line from. * line​Id [ID!](https://shopify.dev/docs/api/admin-graphql/latest/scalars/ID) required The gid of the Subscription Line to remove. *** ## Subscription​Draft​Line​Remove​Payload returns * discounts​Updated [\[Subscription​Manual​Discount!\]](https://shopify.dev/docs/api/admin-graphql/latest/objects/SubscriptionManualDiscount) The list of updated subscription discounts impacted by the removed line. * draft [Subscription​Draft](https://shopify.dev/docs/api/admin-graphql/latest/objects/SubscriptionDraft) The Subscription Contract draft object. * line​Removed [Subscription​Line](https://shopify.dev/docs/api/admin-graphql/latest/objects/SubscriptionLine) The removed Subscription Line. * user​Errors [\[Subscription​Draft​User​Error!\]!](https://shopify.dev/docs/api/admin-graphql/latest/objects/SubscriptionDraftUserError) non-null The list of errors that occurred from executing the mutation. *** ## Examples * ### subscriptionDraftLineRemove reference ## Mutation Reference ```graphql mutation subscriptionDraftLineRemove($draftId: ID!, $lineId: ID!) { subscriptionDraftLineRemove(draftId: $draftId, lineId: $lineId) { discountsUpdated { # SubscriptionManualDiscount fields } draft { # SubscriptionDraft fields } lineRemoved { # SubscriptionLine fields } userErrors { field message } } } ``` ## Input ```json { "draftId": "gid://shopify//10079785100", "lineId": "gid://shopify//10079785100" } ``` ##### Variables ``` { "draftId": "gid://shopify//10079785100", "lineId": "gid://shopify//10079785100" } ```