Legacy Dev Forum Posts

 View Only

Sign Up

Deleting all contacts in a contact list without passing contactIDs

  • 1.  Deleting all contacts in a contact list without passing contactIDs

    Posted 06-05-2025 18:05

    sujab | 2018-09-27 06:44:17 UTC | #1

    Could anyone please share if there is any purecloud API to delete all the contacts inside a contact list without passing the ids of each contact?


    tim.smith | 2018-09-27 14:37:57 UTC | #2

    There is not. You must either delete the list itself or delete the contacts by ID.


    sujab | 2018-09-28 05:12:07 UTC | #3

    The actual issue is : while uploading a set of contacts to a list it is uploaded to the genesys. But again we are sending the same set of records it is appending to the existing contacts in contact list. So there is an issue of duplication of contacts.

    Is there any way to solve this while uploading contacts? Is there any way such that while uploading contacts instead of appending the existing ones the contacts will be removed and the new list of contacts will get added.

    To upload contacts I am using the below-mentioned API. https://apps.mypurecloud.com/uploads/v2/contactlist


    anon28885283 | 2018-09-28 05:45:09 UTC | #4

    In the case of duplication:

    Do you have a column that contains unique values for each contact (Like an ID)? When appending contacts, you could use that to update existing contacts of duplicating them.

    https://developer.mypurecloud.com/api/rest/v2/outbound/uploadcontactlists.html https://help.mypurecloud.com/articles/append-records-contact-list/


    sujab | 2018-09-28 06:11:00 UTC | #5

    So lets assume we have a unique column and uploaded a set of records for the first time. And again trying to upload some other set of records with some duplicate data. In this case how will we get to know the record has already been in the contactlist?


    tim.smith | 2018-09-28 14:26:23 UTC | #6

    You need to either delete the list or delete the contacts in it first.


    Becky_Powell | 2018-10-24 19:33:26 UTC | #7

    Hi Suja,

    We've just released a new API call that deletes all contacts from a contact list:

    ({public api domain}/api/v2/outbound/contactlists/{contactListId}/clear)

    For more information, see Outbound dialing in the Developer Center.

    Have a great day!


    system | 2018-11-24 19:33:32 UTC | #8

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 3643