Actor picture

Abort Actor Runs


This actor enables aborting of all user's currently running actors with a single click or by a single API call. It will scan all actors of the user and up to 1000 of their latest runs and will abort all RUNNING and READY actors. It may also be called with an "actorIds" parameter, which is an Array listing only specific actor ids for which the runs should be aborted. By default it's set to run with 128MBs of memory to minimize compute unit usage at the expense of speed. If you need it to run faster, increase the memory limit. It also scans the user's actors sequentially to prevent API abuse. If you need even more speed, modify the source code to run concurrently, but make sure not to hit the API rate limits.

To run the actor, you'll need an Apify account. Simply create a new task for the actor by clicking the button below, modify the actor input configuration, click Run and get your results.


To run the actor from your code, send a HTTP POST request to the following API endpoint:<YOUR_API_TOKEN>

The POST payload including its Content-Type header is passed as INPUT to the actor (usually application/json). The actor is started with the default options; you can override them using various URL query parameters.

-d '{
  "actorIds": ["someuser~some-actor", "bf8kjsf7392fds"]
}' \
-H 'Content-Type: application/json' \

To use the API, you'll need to replace <YOUR_API_TOKEN> with the API token of your Apify account (view here).

For more information, view the list of actor's API endpoints or the full API reference.