Skip to content

Delete zone

Start from the script setup block, then add the snippet code below.

# ... script setup ...
TWIN_ID = "your-twin-id"
ZONE_ID = "your-zone-id"
api_delete(f"/v1/twin/{TWIN_ID}/zones/{ZONE_ID}")
print(f"Deleted zone {ZONE_ID}")