hmc_delete_lpar
Delete an LPAR by name or UUID. The LPAR must be powered off and in 'not activated' state; this permanently removes the partition and its profiles.
Instructions
Delete (destroy) an LPAR by name or UUID.
The partition must be powered off first (use hmc_power_off_lpar and confirm with hmc_lpars(lpar_name_or_uuid=..., state_only=True)). This tool refuses to delete a partition whose current state is anything other than 'not activated', matching the precondition check pattern used by hmc_remove_memory_pool. This permanently removes the partition and its profiles from the HMC — it is irreversible. Confirm the target with hmc_lpars(name=...) before calling. Returns a confirmation string (immediate delete — no job to poll).
lpar_name_or_uuid: accepts either a PartitionName or a UUID.
Raises: HMCError: If the partition state is not 'not activated' (HTTP 409).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"lpar_name_or_uuid": "<lpar_name_or_uuid>"
},
"name": "hmc_delete_lpar"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lpar_name_or_uuid | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |