Skip to content

Instantly share code, notes, and snippets.

var cleanUp = {
domains: [],
getDomains: async function() {
let results = null;
let page = 0
do {
const response = await fetch(`https://prerender.io/api/cached-pages?page=${page}&pageSize=1000`);
const json = await response.json();
@AlmogCohen
AlmogCohen / _README.md
Last active February 6, 2021 21:34 — forked from osdiab/_README.md
Deletes all your cached URLs in prerender

You can run this by doing the following:

  1. Log into https://prerender.io
  2. Open the developer console on the prerender site
  3. Copy the code in this gist and paste it into your console
  4. Hit enter!

Some notes:

  • This script takes a while, Prerender is not very performant! So if you have a lot of cached URLs, be patient.