deleteFeatureFlagById method

Future<void> deleteFeatureFlagById({
  1. required String featureFlagId,
  2. int? updateSequenceId,
})

Delete the Feature Flag data currently stored for the given ID.

Deletion is performed asynchronously. The getFeatureFlagById operation can be used to confirm that data has been deleted successfully (if needed).

Only Connect apps that define the jiraFeatureFlagInfoProvider module can access this resource. This resource requires the 'DELETE' scope for Connect apps.

Implementation

Future<void> deleteFeatureFlagById(
    {required String featureFlagId, int? updateSequenceId}) async {
  await _client.send(
    'delete',
    'rest/featureflags/0.1/flag/{featureFlagId}',
    pathParameters: {
      'featureFlagId': featureFlagId,
    },
    queryParameters: {
      if (updateSequenceId != null) '_updateSequenceId': '$updateSequenceId',
    },
  );
}