Forgets a destination for the caller's org: every credential held in KMS, then…
Forgets a destination for the caller's org: every credential held in KMS, then the stored config.
DELETE /v1/destination/{platform}
| Address | https://api.hanzo.ai/v1/destination/{platform} |
| Method | DELETE |
| Operation | delete_destination_by_platform |
| Auth | Authorization: Bearer $HANZO_API_KEY |
Forgets a destination for the caller's org: every credential held in KMS, then the stored config. Idempotent, and it requires org admin.
Request
1 field.
| Field | In | Type | Required | Description |
|---|---|---|---|---|
platform | path | string | yes | Platform is the destination to act on, from the path: ga4 | meta | tiktok | linkedin | x | reddit | insights | analytics. |
Response
| Status | Body | Meaning |
|---|---|---|
200 | destinationDisconnected | ok |
200 body — 1 field.
| Field | In | Type | Always | Description |
|---|---|---|---|---|
disconnected | body | boolean | — | Disconnected is true when the credentials and the row are gone. |
Failure carries the platform error shape — see Errors.
Examples
hanzo destinations rm <platform>import { Configuration, DestinationApi } from 'hanzoai';
const api = new DestinationApi(new Configuration({ accessToken: process.env.HANZO_API_KEY }));
const { data } = await api.deleteDestinationByPlatform({ platform: 'platform' });from hanzoai.cloud import ApiClient, Configuration
from hanzoai.cloud.api import DestinationApi
client = ApiClient(Configuration(access_token=os.environ["HANZO_API_KEY"]))
result = DestinationApi(client).delete_destination_by_platform(platform='platform')cfg := cloud.NewConfiguration()
cfg.AddDefaultHeader("Authorization", "Bearer "+os.Getenv("HANZO_API_KEY"))
client := cloud.NewAPIClient(cfg)
resp, _, err := client.DestinationAPI.DeleteDestinationByPlatform(context.Background()).Execute()
if err != nil {
return err
}use hanzo_cloud::apis::{configuration::Configuration, destination_api};
let mut cfg = Configuration::new();
cfg.bearer_access_token = std::env::var("HANZO_API_KEY").ok();
let result = destination_api::delete_destination_by_platform(&cfg, Default::default()).await?;import ai.hanzo.cloud.ApiClient;
import ai.hanzo.cloud.api.DestinationApi;
ApiClient client = new ApiClient();
client.setRequestInterceptor(b -> b.header("Authorization", "Bearer " + System.getenv("HANZO_API_KEY")));
var result = new DestinationApi(client).deleteDestinationByPlatform();The method above is the one at the current release of the document. [email protected] (npm) and [email protected] (PyPI) were generated from an earlier release, where this operation carried a different id, so it spells the method differently — regenerating the clients is what makes the two agree. SDKs →
curl -X DELETE https://api.hanzo.ai/v1/destination/<platform> \
-H "Authorization: Bearer $HANZO_API_KEY"The door reaches destination through the destinations tool, which names its 5 operations with its own verbs — this one among them, under a name only the door declares. describe explains any of them:
curl -X POST https://api.hanzo.ai/v1/mcp \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "describe",
"arguments": {
"op": "list_destinations"
}
}
}'How is this guide?