For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Sign inTry it free
DocsGuidesSDKsIntegrationsAPI docsTutorialsFlagship blog
DocsGuidesSDKsIntegrationsAPI docsTutorialsFlagship blog
  • REST API overview
    • Access Tokens
    • Account Members
    • Account Usage Beta
    • AI Configs
    • Announcements
    • 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
    • Tags
    • Teams
    • Teams Beta
    • Users
    • Users Beta
    • User Settings
    • Views Beta
      • POSTCreate view
      • DELDelete view
      • GETGet linked resources
      • GETGet linked views for a given resource
      • GETGet view
      • POSTLink resource
      • GETList views
      • DELUnlink resource
      • PATCHUpdate view
    • Webhooks
    • Workflows
    • Workflow Templates
    • Other
Sign inTry it free
LogoLogo
REST API overviewViews Beta

Unlink resource

DELETE
/api/v2/projects/:projectKey/views/:viewKey/link/:resourceType
DELETE
/api/v2/projects/:projectKey/views/:viewKey/link/:resourceType
$curl -X DELETE https://app.launchdarkly.com/api/v2/projects/default/views/my-view/link/flags \
> -H "LD-API-Version: beta" \
> -H "Authorization: <apiKey>" \
> -H "Content-Type: application/json" \
> -d '{
> "keys": [
> "flag-1",
> "flag-2"
> ],
> "filter": "maintainerId:507f1f77bcf86cd799439011,tags:backend+beta",
> "comment": ""
>}'
1{
2 "successCount": 0,
3 "failureCount": 6,
4 "failedResources": [
5 {
6 "resourceKey": "resourceKey",
7 "resourceType": "flag",
8 "errorMessage": "errorMessage",
9 "environmentId": "environmentId"
10 },
11 {
12 "resourceKey": "resourceKey",
13 "resourceType": "flag",
14 "errorMessage": "errorMessage",
15 "environmentId": "environmentId"
16 }
17 ]
18}
Unlink one or multiple resources from a view: - Unlink flags using flag keys - Unlink segments using segment IDs - Unlink AI configs using config keys
Was this page helpful?
Previous

Update view

Next
Built with

Unlink one or multiple resources from a view:

  • Unlink flags using flag keys
  • Unlink segments using segment IDs
  • Unlink AI configs using config keys

Authentication

Authorizationstring
API Key authentication via header

Path parameters

projectKeystringRequired
viewKeystringRequired
resourceTypeenumRequired
Allowed values:

Headers

LD-API-VersionenumRequired
Version of the endpoint.
Allowed values:

Request

The resource to link to the view. Flags are identified by key. Segments are identified by segment ID.
ViewLinkRequestKeysobjectRequired
OR
ViewLinkRequestSegmentIdentifiersobjectRequired
OR
ViewLinkRequestFilterobjectRequired

Response

Successful response with unlink details
successCountinteger
The number of resources successfully unlinked.
failureCountinteger
The number of resources that failed to unlink.
failedResourceslist of objects
Details of resources that failed to unlink.

Errors

400
Bad Request Error
403
Forbidden Error
404
Not Found Error
500
Internal Server Error