Anchor to segmentDeletesegment
segmentDelete
mutation
Requires access scope. Also: The user must not have restricted access.
Deletes a segment.
Anchor to SegmentDeletePayload returnsSegmentDeletePayload returns
- Anchor to deletedSegmentIddeleted•
Segment Id ID of the deleted segment.
- Anchor to userErrorsuser•
Errors [UserError!]! non-null The list of errors that occurred from executing the mutation.
Was this section helpful?
Mutation Reference
1mutation segmentDelete($id: ID!) {2 segmentDelete(id: $id) {3 deletedSegmentId4 userErrors {5 field6 message7 }8 }9}
Input
1{2 "id": "gid://shopify/<objectName>/10079785100"3}
{
"id": "gid://shopify/<objectName>/10079785100"
}