Batch Deletion of expired waivers

i have a number of waivers that have expired and wondered if there were a way i could batch delete with waiver id’s.

Hello Martyn,

Thank you for your question. Welcome to the Community forum!

As far as I am aware, there is not currently a dedicated ‘bulk-delete endpoint’ for a list of waiver IDs, so the supported approach would be to script individual DELETE API calls to /api/v2/policyWaivers/{ownerType}/{ownerId}/{policyWaiverId} for each waiver.

To identify expired waivers, you can use the Waivers Dashboard / Export Waivers Data in the UI, then use that exported owner/scope information to form each DELETE call.

Per our Policy Waiver REST API documentation, a REST API for bulk waivers was introduced in IQ Server Release 196, but it pertains to creation rather than deletion.

There is a related feature request in our IDEAS portal for finding expired waivers in a streamlined way. It would be great if you posted an IDEA that captures your own requirements.

I can log a Product Gap internally and would happily discuss this further with you sometime next week.

Kind regards,

James (Sonatype Customer Success)