Apify Discord Mirror

Updated 5 months ago

deleting request queues

At a glance

The community member's post asks how to delete a request queue once the crawling is finished and how to determine when the crawling is finished to delete the request queue. In the comments, another community member suggests that the requestQueue can be dropped at the end of the run using the following code:

await Actor.init(); const rq = await RequestQueue.open(); // ... await rq.drop(); await Actor.exit();

There is no explicitly marked answer in the provided information.

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
P
1 comment
You should be able to drop the requestQueue on the end of the run:

Plain Text
await Actor.init();

const rq = await RequestQueue.open();

// ...

await rq.drop();

await Actor.exit();
Add a reply
Sign up and join the conversation on Discord