DeletePreference

Deletes a preference or a preference category that has a given ID

This method deletes the preference or preference category with the given ID.

If the preference is in use (for example in a segment), an error will be returned.

If you delete a category, any preferences in that category are also deleted.

SOAP action: http://apiconnector.com/v2/ApiService/DeletePreference

📘

Input parameters

PreferenceID - required; integer

Example

using (var client = new ApiServiceClient())
{
  client.ClientCredentials.UserName.UserName = "username";
  client.ClientCredentials.UserName.Password = "password";

  var preferenceId = 1;
  client.DeletePreference(preferenceId);
}