Actions33
- Documents Actions
- General Actions
- Indexes Actions
- Keys Actions
- Search Actions
- Settings Actions
- Tasks Actions
Tasks → Delete Tasks
AI-generatedOverview
This node operation deletes tasks in Meilisearch based on specified filtering criteria. It allows users to remove tasks by providing various filters such as UIDs, Index UIDs, statuses, types, canceledBy UIDs, and time-based filters for enqueued, started, and finished timestamps. This operation is useful for managing and cleaning up tasks in Meilisearch, especially when needing to delete multiple tasks that meet certain conditions.
Use Case Examples
- Deleting tasks by specifying a comma-separated list of task UIDs to remove specific tasks.
- Removing tasks that were enqueued before or after a certain date/time to clean up old or irrelevant tasks.
- Filtering tasks by status or type and deleting all matching tasks in bulk.
Properties
| Name | Meaning |
|---|---|
| UIDs | Comma delimited list of UID(s) to filter results by for deletion. |
| Index UIDs | Comma delimited list of Index UID(s) to filter results by for deletion. |
| Statuses | Comma delimited list of Task Status(es) to filter results by for deletion. |
| Types | Comma delimited list of Task Type(s) to filter results by for deletion. |
| Canceled By | Comma delimited list of Task UID(s) that canceled another task(s) to filter results by for deletion. |
| Before Enqueued At | Filter tasks based on their enqueuedAt time before this date/time for deletion. |
| After Enqueued At | Filter tasks based on their enqueuedAt time after this date/time for deletion. |
| Before Started At | Filter tasks based on their startedAt time before this date/time for deletion. |
| After Started At | Filter tasks based on their startedAt time after this date/time for deletion. |
| Before Finished At | Filter tasks based on their finishedAt time before this date/time for deletion. |
| After Finished At | Filter tasks based on their finishedAt time after this date/time for deletion. |
Output
JSON
json- Response from Meilisearch API after attempting to delete tasks, including status and details of the deletion operation.
Dependencies
- Meilisearch API key credential
Troubleshooting
- Ensure the Meilisearch API credentials are correctly configured and have permissions to delete tasks.
- Verify that the UIDs or other filter criteria are correctly formatted as comma-delimited strings without spaces.
- If the operation times out, consider increasing the timeout or checking the Meilisearch server status.
- Common error messages may include authentication failures, invalid filter parameters, or network issues. Verify credentials, parameter formats, and connectivity to resolve these errors.