FeatureFlagClient.DeleteFeatureFlagAsync Method

Definition

Overloads

Name Description
DeleteFeatureFlagAsync(FeatureFlag, Boolean, CancellationToken)

Delete a FeatureFlag from the configuration store.

DeleteFeatureFlagAsync(String, String, CancellationToken)

Delete a FeatureFlag from the configuration store.

DeleteFeatureFlagAsync(FeatureFlag, Boolean, CancellationToken)

Source:
FeatureFlagClient.cs

Delete a FeatureFlag from the configuration store.

public virtual System.Threading.Tasks.Task<Azure.Response> DeleteFeatureFlagAsync(Azure.Data.AppConfiguration.FeatureFlag flag, bool onlyIfUnchanged = false, System.Threading.CancellationToken cancellationToken = default);
abstract member DeleteFeatureFlagAsync : Azure.Data.AppConfiguration.FeatureFlag * bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
override this.DeleteFeatureFlagAsync : Azure.Data.AppConfiguration.FeatureFlag * bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function DeleteFeatureFlagAsync (flag As FeatureFlag, Optional onlyIfUnchanged As Boolean = false, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response)

Parameters

flag
FeatureFlag

The FeatureFlag to delete.

onlyIfUnchanged
Boolean

If set to true and the feature flag exists in the configuration store, delete the feature flag only if the passed-in FeatureFlag is the same version as the one in the configuration store. The versions are the same if their Etag values match. If they differ, the service returns 412 (precondition failed) and a RequestFailedException is thrown to indicate that the feature flag in the configuration store was modified since it was last obtained by the client.

cancellationToken
CancellationToken

A CancellationToken controlling the request lifetime.

Returns

A response indicating the success of the operation.

Applies to

DeleteFeatureFlagAsync(String, String, CancellationToken)

Source:
FeatureFlagClient.cs

Delete a FeatureFlag from the configuration store.

public virtual System.Threading.Tasks.Task<Azure.Response> DeleteFeatureFlagAsync(string name, string label = default, System.Threading.CancellationToken cancellationToken = default);
abstract member DeleteFeatureFlagAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
override this.DeleteFeatureFlagAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function DeleteFeatureFlagAsync (name As String, Optional label As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response)

Parameters

name
String

The name of the feature flag.

label
String

A label used to group this feature flag with others.

cancellationToken
CancellationToken

A CancellationToken controlling the request lifetime.

Returns

A response indicating the success of the operation.

Applies to