Gravatar for noel.brennan@hpe.com

Question by Noel Brennan, Oct 17, 2018 10:15 AM

In the Coveo Admin, is there a way to delete all items in a Coveo source, older than the last full batch push upload?

Is there a way to configure the Coveo admin to delete all items in a Coveo source older than the items in a batch push upload. We want to push all product data to a Coveo source each day, but after the initial push, there may be items in the Coveo source that have been deleted in our backend DB (the source for the push to the Coveo source). The deleted items in our DB should not exist in Coveo either, so I would like Coveo to automatically delete these items. We could do the delete on our side by explicitly using a delete command with an orderingId and deleting items older a specific timestamp. But if possible, we would like the Coveo admin to be configured to delete old items after a full batch upload. Is this posible?

Gravatar for noel.brennan@hpe.com

Comment by Noel Brennan, Oct 17, 2018 10:21 AM

@Jean-François L'Heureux

Can the Coveo Admin be configured to delete all items in a Coveo source, older than the last full batch push upload?

1 Reply
Gravatar for flguillemette@coveo.com

Answer by François Lachance-Guillemette, Oct 17, 2018 12:37 PM

Coveo Cloud cannot automatically delete documents when you finish pushing them, you have to use the DELETE /organizations/organizationId/sources/sourceId/documents/olderthan call as you mentioned.

Ask a question