Legacy Dev Forum Posts

 View Only

Sign Up

How to Bulk Delete Interactions without Queue JOB

  • 1.  How to Bulk Delete Interactions without Queue JOB

    Posted 06-05-2025 19:10

    Nawaz_Ria | 2020-03-13 13:04:11 UTC | #1

    I am using the /api/v2/recording/jobs API to create a Job that would set the delete date of Recordings which are not associated with a Queue. However, something is going wrong with the NotExists filter. When I run this Job, all the Recordings, even those with Queues, are affected. Any help would be appreciated. This is my JSON: { "action": "DELETE", "actionDate": "2020-03-14T11:00:00.000Z", "conversationQuery": { "type": "and", "interval": "2020-02-26T00:00:00.000Z/2020-02-26T23:59:59.999Z", "segmentFilters": [ { "type": "or", "predicates": [ { "dimension": "queueId", "operator": "notExists" } ] } ], "startOfDayIntervalMatching": true } }


    tim.smith | 2020-03-13 14:42:48 UTC | #2

    That's because that filter finds conversations where any segment doesn't have a queue ID. That's true of all conversations because at least one participant in every conversation is not a queue. You'll have to find something you can key on for a positive match that meets your needs.


    system | 2020-04-13 14:42:49 UTC | #3

    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: 7337