Data Operations
Deleting Tasks
Learn how to delete tasks in Chunkr AI
Chunkr AI provides methods to delete tasks when they’re no longer needed. Any task that has status Succeeded
or Failed
can be deleted.
You can delete tasks either by their ID or using a task object.
Deleting by Task ID
Use the delete_task()
method when you have the task ID:
Deleting from TaskResponse Object
If you have a task object, you can delete it directly using the delete()
method:
Async Usage
For async applications, remember to use await
: