sellingPlanGroupDelete mutation
Delete a Selling Plan Group.
Required access
write_products access scope.
On this page
Interactive example
This is an example mutation query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.
mutation sellingPlanGroupDelete($id: ID!) { sellingPlanGroupDelete(id: $id) {} } { “id”: “Z2lkOi8vU2hvcGlmeS9FeGFtcGxlLzE=” }
<font style="color:#1F61A0;">deletedSellingPlanGroupId</font><font style="color:#1F61A0;">userErrors</font> <font style="color:#555555;">{</font><font style="color:#1F61A0;">code</font><font style="color:#1F61A0;">field</font><font style="color:#1F61A0;">message</font><font style="color:#555555;">}</font>
Arguments
| Argument | Description | 
|---|---|
id( [ID!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#id-2021-01)) REQUIRED  | 
The id of the selling plan group to delete. | 
Return fields
- deletedSellingPlanGroupId (
[ID](https://shopify.dev/docs/admin-api/graphql/reference/scalar#id-2021-01))
The id of the deleted selling plan group object. - userErrors (
[[SellingPlanGroupUserError!]!](https://shopify.dev/docs/admin-api/graphql/reference/products-and-collections/sellingplangroupusererror))
List of errors that occurred executing the mutation. 
