Skip to main content

Overview

To turn a feature off for everyone, make the flag serve false in that environment: set Fallthrough to false and remove any rules that serve true. SDK clients pick up the change within seconds when streaming is on, or on their next poll.

Turn it off

1

Open the flag

In the dashboard, open the project, click the flag (for example new-checkout), and select the environment, for example production.
2

Serve false

Set Fallthrough to false. Remove every rule that serves true, or change its Serve to false.
3

Save

Click Save environment.
Switching Enabled in production off does not turn a boolean flag off by itself. A disabled flag skips its rules and serves the Fallthrough value to everyone. If Fallthrough is true, a disabled flag keeps serving true. Always set Fallthrough to the off value.
Switching Enabled in <environment> off is still useful when Fallthrough is already false: it stops every rule from matching in one click, without deleting the rules.

How fast it takes effect

See Local evaluation for how snapshots refresh.

Make the code default the safe value

When the SDK has no snapshot (before ready(), or when the edge is unreachable with no cache), it serves the client defaults. Write flags so the default is the safe state:
Keep default: false in your flag definitions too. shipd push sets Fallthrough in the target environment to the config default, so a config that says true would turn the feature back on at the next push.

Approvals

If an approval policy protects the environment, Save environment can create a pending request instead of changing the live flag. The feature stays on until the request is approved. Plan for this before an incident: make sure enough reviewers are available, or keep a policy that lets on-call staff approve quickly.