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).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lpar_name_or_uuid | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |