Skip to content

ws1-client-sdk/com.airwatch.sdk/SDKManager/deleteCustomAttributes

deleteCustomAttributes

open fun deleteCustomAttributes(attributes: List<CustomAttributeData>): Int

Deletes custom attributes for the given list of attributes.

Each CustomAttributeData must have group and key fields populated to identify the attributes to delete.

Parameters

Name Description
attributes list of attributes to delete.

Return

Positive integer indicating the number of attributes successfully deleted, or SDK_RES_FAIL status code if attributes array is empty/null.

Throws

Exception Condition
com.airwatch.sdk.AirWatchSDKException if any attribute is null or has null/empty group or key, if the service returns an error message, if API is not available in Anchor Application, or if binding with Anchor app fails.