Infinite Pages delete error
Hi. Tried this in an open channel, but no dice.
There's no Pages Help forum, so I'll try here, too.
Here's the situation: I can't delete an old Pages project.
The error says "too many deployments." There's a CF link to a project and npm command that deletes the deployments via the terminal. However, that isn't working, either.
https://developers.cloudflare.com/pages/platform/known-issues/#delete-a-project-with-a-high-number-of-deployments
(I don't really know what version of Pages it's on — two or three.)
Error:
I believe I passed the script the right API token, account ID, and project name.
Is my only option to try and delete a few hundred deployments by hand?
Lol. I can do it, but it's hilariously tragic. More so, if it fails.
Any thoughts, ideas, opinions, or better CF scripts?
5 Replies
I followed this https://medium.com/@jaredpotter1/connecting-puppeteer-to-existing-chrome-window-8a10828149e0 , signed it to cloudflare on that chrome instance, and then vibe coded this, but the max I could delete was like 30 deployments before some error from the page being rerendered.
Medium
Connecting Puppeteer to Existing Chrome Window
Be itself Puppeteer (https://github.com/GoogleChrome/puppeteer) is a great tool created by Google to assist with automated UI testing…
That's a very clever idea.
I'll take a deeper look at it later. Thanks.
You may need to turn down the
DEPLOYMENTS_PER_PAGE and PAGINATION_BATCH_SIZE variables in the scriptAnother good option — thanks, I'll look at that, too. I'm struggling with some favicons and will look at this afterwards.
For the life of me, I'll never understand why favicons are a hassle.
In the end, I did a lot of hand deletion until I got it small enough that the dashboard UI worked. It may have been around 100, at some point, I stopped looking too closely.
I did try adjusting Walshy's variables, but, even when I set them both to 1, the script still errored out.