remove


Purpose

Uses given parameters to remove an entry from the user's address book.

Signature

remove( contact, callbacks )

Returns

This method does not return anything.

Parameter

Name Description
contact An object containing contact parameters. The object must be compliant with the 2013 definition of the W3C Contacts Manager API specification. However, certain limitations apply, listed in the save article.
callbacks An object containing two callback methods listed below.

Callbacks object structure

The remove listener's callbacks object can be structured as follows:

{
    onSuccess: function () { ... },
    onFailure: function (error) { ... }
}

Callback methods

Name Description Return type
onSuccess Passed to notify that the removal process completed without issues. undefined
onFailure

Passed to notify that the process could not be completed. It passes an object that contains a description of an error, as listed in the Constants table of the Contacts article.

{
  code,
  description
}

undefined

Related topics

Contacts
Public API reference
Legal notice | Copyright © 2018 and Confidential to Pegasystems Inc. All rights reserved
PDN | Feedback
Advanced...