Delete destination

Forgets a destination for the caller's org: every credential held in KMS, then the stored config.

DELETE /v1/destination/{platform}

Addresshttps://api.hanzo.ai/v1/destination/{platform}
MethodDELETE
Operationdelete_destination_by_platform
AuthAuthorization: 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.

FieldInTypeRequiredDescription
platformpathstringyesPlatform is the destination to act on, from the path: ga4 | meta | tiktok | linkedin | x | reddit | insights.

Response

StatusBodyMeaning
200destination.destinationDisconnectedok
defaultproblem-detailsrefused

200 body — 1 field.

FieldInTypeAlwaysDescription
disconnectedbodyboolean—Disconnected is true when the credentials and the row are gone.

Failure carries the platform error shape — see Errors.

Examples

hanzo destination 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 := hanzoai.NewConfiguration()
cfg.AddDefaultHeader("Authorization", "Bearer "+os.Getenv("HANZO_API_KEY"))
client := hanzoai.NewAPIClient(cfg)

resp, _, err := client.DestinationAPI.DeleteDestinationByPlatform(context.Background()).Execute()
if err != nil {
	return err
}
use hanzo_client::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.setBearerToken(System.getenv("HANZO_API_KEY"));

var result = new DestinationApi(client).deleteDestinationByPlatform();
curl -X DELETE https://api.hanzo.ai/v1/destination/<platform> \
  -H "Authorization: Bearer $HANZO_API_KEY"

MCP reaches destination through the destination tool, which names its 4 operations with its own verbs — this one among them, under a name only MCP 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"
         }
       }
     }'

Destination API · All Hanzo APIs · Interactive reference

Was this page useful?