You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
console.log(`New contact was ${success ?'saved':'not saved'}.`)
181
181
```
182
182
183
-
### `contacts.deleteContact(name)`
183
+
### `contacts.deleteContact({ identifier, name })`
184
184
185
-
*`name` String (required) - The first, middle, last, or full name of a contact.
185
+
*`identifier` String (optional) - The contact's unique identifier.
186
+
*`name` String (optional) - The first, middle, last, or full name of a contact.
186
187
187
188
Returns `Boolean` - whether the contact was deleted successfully.
188
189
189
-
Deletes a contact to the user's contacts database.
190
+
Deletes a contact from the user's contacts database.
190
191
191
192
If a contact's full name is 'Shelley Vohr', I could pass 'Shelley', 'Vohr', or 'Shelley Vohr' as `name`.
192
193
However, you should take care to specify `name` to such a degree that you can be confident the first contact to be returned from a predicate search is the contact you intend to delete.
0 commit comments