removePreference method

Future<void> removePreference(
  1. String key
)

Deletes a preference of the user, which restores the default value of system defined settings.

Note that these keys are deprecated:

  • jira.user.locale The locale of the user. By default, not set. The user takes the instance locale.
  • jira.user.timezone The time zone of the user. By default, not set. The user takes the instance timezone.

Use Update a user profile from the user management REST API to manage timezone and locale instead.

Permissions required: Permission to access Jira.

Implementation

Future<void> removePreference(String key) async {
  await _client.send(
    'delete',
    'rest/api/3/mypreferences',
    queryParameters: {
      'key': key,
    },
  );
}