Strange how Google have stymied file handling under the guise of security and yet the clipboard can retain potentially sensitive data!
This Stack Overflow page appears to offer a solution for API 28+:
As I see it, if the primary clip is deleted, the next-in-line clip becomes the primary clip, so each clip could be deleted in a loop until the clipboard is empty?