---
title: "Delete CustomerSegment"
method: DELETE
path: "/shop/customers/customer-segments/{customerSegmentId}"
tags: ["CustomerSegments"]
---

# Delete CustomerSegment

`DELETE /shop/customers/customer-segments/{customerSegmentId}`

Soft-deletes the given `CustomerSegment`. Existing segment members are unaffected,
but the segment can no longer be used for campaigns. Use the companion
`restoreCustomerSegment` endpoint to undo.

## Response `204`

The `CustomerSegment` was successfully soft-deleted.

## Other responses

- `401` — The user is unauthenticated
- `403` — The authenticated user does not have permission.
- `404` — The resource couldn't be found

---

[API](https://skmtc.dev/try/apis/trybe-api.md) · [All operations](https://skmtc.dev/try/apis/trybe-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/try/trybe-api/revisions/f37f92702da5/schema)
