LaunchDarkly docs
Search
/
Sign in
Get a demo
Home
Guides
SDKs
Integrations
API docs
Home
Guides
SDKs
Integrations
API docs
Overview
Access tokens
Account members
Account members (beta)
Account usage (beta)
AI configs (beta)
Applications (beta)
Approvals
Approvals (beta)
Audit log
Code references
Contexts
Context settings
Custom roles
Data Export destinations
Environments
Experiments
Feature flags
Feature flags (beta)
Flag import configurations (beta)
Flag links (beta)
Flag triggers
Follow flags
Holdouts (beta)
Insights charts (beta)
Insights deployments (beta)
Insights flag events (beta)
Insights pull requests (beta)
Insights repositories (beta)
Insights scores (beta)
Integration audit log subscriptions
Integration delivery configurations (beta)
Integrations (beta)
Layers
Metrics
Metrics (beta)
OAuth2 Clients
Persistent store integrations (beta)
Projects
Relay Proxy configurations
Release pipelines (beta)
Releases (beta)
Scheduled changes
Segments
POST
Create big segment export
POST
Create big segment import
POST
Create segment
DEL
Delete segment
GET
Get big segment export
GET
Get big segment import
GET
Get big segment membership for context
GET
Get big segment membership for user
GET
Get expiring targets for segment
GET
Get expiring user targets for segment
GET
Get segment
POST
List segment memberships for context instance
GET
List segments
PATCH
Patch segment
POST
Update context targets on a big segment
PATCH
Update expiring targets for segment
PATCH
Update expiring user targets for segment
POST
Update user context targets on a big segment
Tags
Teams
Teams (beta)
Users
Users (beta)
User settings
Webhooks
Workflows
Workflow templates
Other
Sign in
Get a demo
Overview
Segments
Delete segment
DELETE
https://
app.launchdarkly.com
/
api
/
v2
/
segments
/
:projectKey
/
:environmentKey
/
:segmentKey
Try it
Delete a segment.
Path parameters
projectKey
string
Required
The project key
environmentKey
string
Required
The environment key
segmentKey
string
Required
The segment key
Response
Action succeeded
{}
map from strings to any or null
Errors
401
Delete Segment Request Unauthorized Error
403
Delete Segment Request Forbidden Error
404
Delete Segment Request Not Found Error
409
Delete Segment Request Conflict Error
429
Delete Segment Request Too Many Requests Error
Get big segment export
Up Next
Built with