Redirect to the tasks API root — DELETE /v1/tasks
Answers 307 with Location /v1/tasks/ — this address serves nothing itself.
DELETE /v1/tasks
| Address | https://api.hanzo.ai/v1/tasks |
| Method | DELETE |
| Operation | delete_tasks |
| Auth | Authorization: Bearer $HANZO_API_KEY |
Answers 307 with Location /v1/tasks/ — this address serves nothing itself. The redirect is a routing fact derived from the engine's subtree, decided before any handler runs, so it is the same on every method.
A 307 preserves both the method and the body, so a client that follows redirects re-sends the request unchanged to /v1/tasks/ and nothing is lost. A client that does NOT follow redirects sees only the 307 and performs no work — address /v1/tasks/ directly and the hop disappears.
Request
DELETE /v1/tasks takes no parameters and no body — the credential is the whole request.
Response
The document declares no response body for this operation. It answers 200 on success and the platform error shape on failure — see Errors.
Examples
hanzo tasks clearimport { Configuration, TasksApi } from 'hanzoai';
const api = new TasksApi(new Configuration({ accessToken: process.env.HANZO_API_KEY }));
const { data } = await api.deleteTasks();from hanzoai.cloud import ApiClient, Configuration
from hanzoai.cloud.api import TasksApi
client = ApiClient(Configuration(access_token=os.environ["HANZO_API_KEY"]))
result = TasksApi(client).delete_tasks()cfg := cloud.NewConfiguration()
cfg.AddDefaultHeader("Authorization", "Bearer "+os.Getenv("HANZO_API_KEY"))
client := cloud.NewAPIClient(cfg)
resp, _, err := client.TasksAPI.DeleteTasks(context.Background()).Execute()
if err != nil {
return err
}use hanzo_cloud::apis::{configuration::Configuration, tasks_api};
let mut cfg = Configuration::new();
cfg.bearer_access_token = std::env::var("HANZO_API_KEY").ok();
let result = tasks_api::delete_tasks(&cfg, Default::default()).await?;import ai.hanzo.cloud.ApiClient;
import ai.hanzo.cloud.api.TasksApi;
ApiClient client = new ApiClient();
client.setRequestInterceptor(b -> b.header("Authorization", "Bearer " + System.getenv("HANZO_API_KEY")));
var result = new TasksApi(client).deleteTasks();curl -X DELETE https://api.hanzo.ai/v1/tasks \
-H "Authorization: Bearer $HANZO_API_KEY"Tool tasks, op delete_tasks — POST the JSON-RPC envelope to https://api.hanzo.ai/v1/mcp.
curl -X POST https://api.hanzo.ai/v1/mcp \
-H "Authorization: Bearer $HANZO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "tasks",
"arguments": {
"op": "delete_tasks",
"input": {}
}
}
}'How is this guide?