Delete nodes

Delete one node.

DELETE /v1/ai/nodes/{owner}/{name}

Addresshttps://api.hanzo.ai/v1/ai/nodes/{owner}/{name}
MethodDELETE
Operationdelete_ai_nodes_by_owner_by_name
AuthAuthorization: Bearer $HANZO_API_KEY

Delete one node.

Request

2 fields.

FieldInTypeRequiredDescription
ownerpathstringyes
namepathstringyes

Response

StatusBodyMeaning
200Envelope.
401โ€”No credential, or one this service does not accept.
403โ€”A valid credential that may not do this.

200 body โ€” 53 fields.

FieldInTypeAlwaysDescription
databodyanyโ€”The operation's own result.
data2bodyanyโ€”A second result the operation defines, when it has one.
msgbodystringyesEmpty on success, the reason on failure.
statusbodystringyesOne of ok, error.
data.autoQuerybodybooleanโ€”
data.categorybodystringโ€”
data.cpuSizebodystringโ€”
data.createdTimebodystringโ€”
data.descriptionbodystringโ€”
data.displayNamebodystringโ€”
data.enableRemoteAppbodybooleanโ€”
data.isPermanentbodybooleanโ€”
data.languagebodystringโ€”
data.machineNamebodystringโ€”
data.memSizebodystringโ€”
data.namebodystringโ€”
data.osbodystringโ€”
data.ownerbodystringโ€”
data.patchesbodyPatch[]โ€”
data.patches[].categorybodystringโ€”
data.patches[].expectedStatusbodystringโ€”
data.patches[].installTimebodystringโ€”
data.patches[].messagebodystringโ€”
data.patches[].namebodystringโ€”
data.patches[].sizebodystringโ€”
data.patches[].statusbodystringโ€”
data.patches[].titlebodystringโ€”
data.patches[].urlbodystringโ€”
data.privateIpbodystringโ€”
data.publicIpbodystringโ€”
data.remoteAppsbodyRemoteApp[]โ€”
data.remoteApps[].nobodyintegerโ€”
data.remoteApps[].remoteAppArgsbodystringโ€”
data.remoteApps[].remoteAppDirbodystringโ€”
data.remoteApps[].remoteAppNamebodystringโ€”
data.remotePasswordbodystringโ€”
data.remotePortbodyintegerโ€”
data.remoteProtocolbodystringโ€”
data.remoteUsernamebodystringโ€”
data.servicesbodyService[]โ€”
data.services[].expectedStatusbodystringโ€”
data.services[].messagebodystringโ€”
data.services[].namebodystringโ€”
data.services[].nobodyintegerโ€”
data.services[].pathbodystringโ€”
data.services[].portbodyintegerโ€”
data.services[].processIdbodyintegerโ€”
data.services[].statusbodystringโ€”
data.services[].subStatusbodystringโ€”
data.sizebodystringโ€”
data.tagbodystringโ€”
data.typebodystringโ€”
data.updatedTimebodystringโ€”

Failure carries the platform error shape โ€” see Errors.

Examples

hanzo ai nodes owner rm <owner> <name>
import { Configuration, AiApi } from 'hanzoai';

const api = new AiApi(new Configuration({ accessToken: process.env.HANZO_API_KEY }));
const { data } = await api.deleteAiNodesByOwnerByName({ owner: 'owner', name: 'name' });
from hanzoai.cloud import ApiClient, Configuration
from hanzoai.cloud.api import AiApi

client = ApiClient(Configuration(access_token=os.environ["HANZO_API_KEY"]))
result = AiApi(client).delete_ai_nodes_by_owner_by_name(owner='owner', name='name')
cfg := hanzoai.NewConfiguration()
cfg.AddDefaultHeader("Authorization", "Bearer "+os.Getenv("HANZO_API_KEY"))
client := hanzoai.NewAPIClient(cfg)

resp, _, err := client.AiAPI.DeleteAiNodesByOwnerByName(context.Background()).Execute()
if err != nil {
	return err
}
use hanzo_client::apis::{configuration::Configuration, ai_api};

let mut cfg = Configuration::new();
cfg.bearer_access_token = std::env::var("HANZO_API_KEY").ok();

let result = ai_api::delete_ai_nodes_by_owner_by_name(&cfg, Default::default()).await?;
import ai.hanzo.cloud.ApiClient;
import ai.hanzo.cloud.api.AiApi;

ApiClient client = new ApiClient();
client.setBearerToken(System.getenv("HANZO_API_KEY"));

var result = new AiApi(client).deleteAiNodesByOwnerByName();
curl -X DELETE https://api.hanzo.ai/v1/ai/nodes/<owner>/<name> \
  -H "Authorization: Bearer $HANZO_API_KEY"

MCP declares no tool for ai โ€” tools/list on https://api.hanzo.ai/v1/mcp names the products it does reach. Use HTTP or an SDK.


AI API ยท All Hanzo APIs ยท Interactive reference

Was this page useful?