Apify icon

Apify

Apify API

Overview

This node interacts with the Apify API to delete an actor task. It is useful for automating the management of Apify actor tasks, such as removing tasks that are no longer needed or cleaning up resources. For example, a user can delete a specific actor task by providing its ID, URL, or a combination of the owner's username and task's name.

Use Case Examples

  1. Deleting an Apify actor task by selecting it from a list of tasks.
  2. Deleting an Apify actor task by providing the task's URL.
  3. Deleting an Apify actor task by specifying the task ID directly.

Properties

Name Meaning
Actor Task ID The identifier of the actor task to delete. It can be provided as a task ID, a tilde-separated owner's username and task's name, or a URL pointing to the task.
Use Custom Body A boolean flag indicating whether to use a custom request body when deleting the task.

Output

JSON

  • success - Indicates whether the deletion of the actor task was successful.
  • message - Additional information or error message related to the deletion operation.

Dependencies

  • Requires an Apify API key credential for authentication to access the Apify API.

Troubleshooting

  • Ensure the provided Actor Task ID is valid and correctly formatted according to the selected mode (list, URL, or ID).
  • Check that the Apify API credentials are correctly configured and have the necessary permissions to delete actor tasks.
  • If using the URL mode, verify that the URL matches the expected pattern (https://console.apify.com/actors/tasks/{taskId}).
  • If the deletion fails, review the error message returned by the API for details, such as task not found or insufficient permissions.

Links

Discussion