Skip to content

Function: removePreference() ​

ts
function removePreference(
   client, 
   parameters, 
   options?
): Promise<void>;

Defined in: src/server/api/myPreferences.ts:57

Removes preference of the currently logged in user. Preference key must be provided as input parameters (key). If key parameter is not provided or wrong - status code 404. If preference is unset - status code 204.

Parameters ​

ParameterTypeDescription
clientClient-
parameters{ key?: string; }-
parameters.key?stringKey of the preference to be removed.
options?RequestOptions-

Returns ​

Promise<void>