Bulk delete using API

Hello,

I am currently maintaining a fullstack JS project using prismic with these versions:
"express-prismic": "^1.1.1", "prismic.io": "3.5.7",

I am looking for a way to bulk delete documents based on a specific update date (I don't want them in archived section).

I have found this thread (Bulk remove prismic documents by uid - #3 by Priyanka) recommending to tag and theme bulk delete them from the interface
Make Changes in Bulk - Documentation - Prismic

Is there another way to do it using exclusively APIs ?

Thanks in advance,

1 Like

Hi @developers12,

I'm Alaina, a product manager at Prismic. At present, we do not offer a programmatic way to delete documents, nor is this topic currently on the roadmap for the Migration API, but it is something we are considering for the future.

I am curious about why you do not want them in the archived section, what is your use case for a "hard" delete vs. an archive?

Best,
Alaina

Hi @alaina.koerber,

Use case is very simple, we want to have programmatic control opposed to manually doing it.
Aside from that, I remember that some time ago a colleague tried to archive 500 document but couldn't, she had to do it in smaller batches.

I hope that among all other useful utils API has, deletion through API will also be available.

Thank you.

Disclaimer: I am in no relation to @developers12

Hey,

I’ve reached out to the team handling this to see if there’s any planned support for bulk deletion via API or potential workarounds. I’ll update you as soon as I get more information.

Best,
Ben.