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
  • Get started
    • Overview
    • Onboarding
    • Get started
    • Launch Insights
    • LaunchDarkly architecture
    • LaunchDarkly vocabulary
  • AgentControl
    • AgentControl
    • Manage AgentControl
  • Feature flags
    • Create flags
    • Target with flags
    • Flag templates
    • Manage flags
      • The Flags list
      • Comparing and copying flag settings
      • Viewing flags across environments
      • Deprecating flags
      • Archiving flags
      • Deleting flags
      • Flag prerequisites
      • The off variation
      • The default rule
      • Flag statuses and lifecycle stages
      • Flag lifecycle settings
      • Project-level flag settings
      • Vega for flag cleanup
    • Code references
    • Contexts
    • Segments
  • Releases
    • Releasing features with LaunchDarkly
    • Release policies
    • Percentage rollouts
    • Progressive rollouts
    • Guarded rollouts
    • Feature monitoring
    • Release pipelines
    • Engineering insights
    • Release management tools
    • Applications and app versions
    • Change history
    • Restoring previous flag versions
  • Observability
    • Observability
    • Session replay
    • Error monitoring
    • Logs
    • Traces
    • Observability metrics
    • Product analytics events
    • LLM observability
    • Alerts
    • Dashboards
    • Service map
    • Vega for auto-remediation
    • Observability MCP server
    • Search specification
    • Observability settings
    • Observability integrations
  • Experimentation
    • Experimentation
    • Experiment metric types
    • Experiment configuration
    • Managing experiments
    • Analyzing experiments
    • Multi-armed bandits
    • Holdouts
  • Metrics and events
    • Metrics in LaunchDarkly
    • Creating metrics
    • Metric groups
    • Events
    • Autogenerated metrics
  • Warehouse native
    • Warehouse native metrics
    • Setting up external warehouses
    • Creating experiments using warehouse native metrics
  • Infrastructure
    • Connect apps and services to LaunchDarkly
    • LaunchDarkly in China and Pakistan
    • LaunchDarkly in the European Union (EU)
    • LaunchDarkly in federal environments
    • Public IP list
  • Your account
    • Projects
    • Views
    • Environments
    • Tags
    • Teams
    • Members
    • Roles
    • Account security
    • Feature previews
    • Billing and usage
    • Changelog
Sign inTry it free
LogoLogo
On this page
  • Overview
  • Delete archived flags
Feature flagsManage flags

Deleting flags

Was this page helpful?
Previous

Flag prerequisites

Next
Built with

Overview

This topic explains how to permanently delete flags that are already archived.

Deleting a flag removes it from all environments and deletes its targeting rules. If you are not sure whether to remove a flag, archive it instead. To learn more, read Archiving flags.

Delete archived flags

After you archive a flag, you can delete it when you no longer need it.

When you delete a flag, LaunchDarkly removes its targeting rules. If the flag is requested again, the fallback value defined in code is returned for all contexts. Before you delete a flag, remove any references to it from your application code.

Deleted flags are gone forever

You cannot restore a deleted flag. Make sure your team no longer needs the flag before you delete it.

Many teams archive flags first, then delete them after cleanup is complete. Archiving keeps a flag available for reference, while deleting permanently removes it from LaunchDarkly and the REST API.

To delete an archived flag:

  1. In the left navigation, click Code. The CodeControl menu appears.
  2. Click Flags.
  3. Click Filters. In the “Lifecycle” section, click Archived. The archived flags list appears.
  4. Click a flag name to open the flag you wish to delete.
  5. Click the three-dot overflow menu in the right sidebar.
  6. Select Delete. The “Delete this flag?” dialog appears.
  7. Enter the flag’s name or key in the Confirm field.
  8. Click Delete.

The flag is permanently deleted.

You can also use the REST API: Delete feature flag