--- title: segmentDelete - GraphQL Admin description: Deletes a segment. api_version: 2025-07 api_name: admin type: mutation api_type: graphql source_url: html: https://shopify.dev/docs/api/admin-graphql/2025-07/mutations/segmentdelete md: https://shopify.dev/docs/api/admin-graphql/2025-07/mutations/segmentdelete.md --- # segment​Delete mutation Requires `write_customers` access scope. Also: The user must not have restricted access. Deletes a segment. ## Arguments * id [ID!](https://shopify.dev/docs/api/admin-graphql/2025-07/scalars/ID) required Specifies the segment to delete. *** ## Segment​Delete​Payload returns * deleted​Segment​Id [ID](https://shopify.dev/docs/api/admin-graphql/2025-07/scalars/ID) ID of the deleted segment. * user​Errors [\[User​Error!\]!](https://shopify.dev/docs/api/admin-graphql/2025-07/objects/UserError) non-null The list of errors that occurred from executing the mutation. *** ## Examples * ### segmentDelete reference