deleting request queues

how to delete a request queue once the crawling is finished and how can you tell when the crawling is finished to delete the request queue
1 Reply
Pepa J
Pepa J2y ago
You should be able to drop the requestQueue on the end of the run:
await Actor.init();

const rq = await RequestQueue.open();

// ...

await rq.drop();

await Actor.exit();
await Actor.init();

const rq = await RequestQueue.open();

// ...

await rq.drop();

await Actor.exit();

Did you find this page helpful?