Actions36
- FC Interface Actions
- FCP Service Actions
- Igroup Actions
- iSCSI Service Actions
- LUN Actions
- LUN Map Actions
LUN → Delete
AI-generatedSummary
Delete a specific LUN (Logical Unit Number) from a NetApp ONTAP SAN cluster by its UUID or path.
Inputs
- Cluster Host (required) — Provide the hostname or IP address of the ONTAP cluster management LIF where the LUN resides.
- Port — Set the HTTPS port for the ONTAP REST API; defaults to 443 if not specified.
- LUN (required) — Specify the LUN to delete either by its UUID or by its volume path (e.g., /vol/vol1/lun1).
- Options — Optionally provide a comma-separated list of fields to include in the API response, or use '*' to include all fields.
Output shape
a single JSON object indicating success and the UUID of the deleted LUN, or a job object if the deletion is asynchronous.
The operation returns a success confirmation and the UUID of the deleted LUN if no asynchronous job is created; otherwise, it returns the job details for tracking. The LUN must be resolved to a UUID if specified by path.
Examples
Example 1: Delete a LUN by UUID
Set Cluster Host to 'cluster.example.com', Port to 443 (default), specify the LUN UUID under 'LUN' with mode 'By UUID', and optionally add fields in Options.
Example 2: Delete a LUN by path
Set Cluster Host and Port, specify the LUN path such as '/vol/vol1/lun1' with mode 'By Path' to resolve the LUN, and perform the delete operation.