disable

suspend fun disable(featureId: String): FF4k(source)

Disables a feature flag.

If autoCreate is enabled and the feature doesn't exist, it will be created in a disabled state. Otherwise, throws FeatureNotFoundException.

Return

This FF4k instance for method chaining

Parameters

featureId

The unique identifier of the feature to disable

Throws

if the feature doesn't exist and autoCreate is false