NetApp ONTAP Storage icon

NetApp ONTAP Storage

Manage NetApp ONTAP volumes, aggregates, snapshots, qtrees, and quotas

Snapshot → Delete

AI-generated

Summary

Delete a snapshot from a specified volume on a NetApp ONTAP cluster using the ONTAP REST API.

Inputs

  • Cluster Host (required) — The hostname or IP address of the ONTAP cluster management LIF
  • Port — HTTPS port for the ONTAP REST API (default is 443).
  • Volume (required) — The volume from which to delete the snapshot, specified by UUID.
  • Snapshot (required) — The snapshot to delete, specified either by UUID or by name on the target volume.
  • Options.Fields — Optional comma-separated list of fields to include in the response (use * for all).

Output shape

a single JSON object indicating success and the deleted snapshot's UUID, or job details if the operation is asynchronous

If the API response includes a job, the node polls until job completion and returns the job result. If no job is returned, a simple success confirmation with the deleted snapshot UUID is returned. Errors occur if the specified snapshot cannot be found by name or UUID.

Examples

Example 1: Delete a snapshot by UUID

Provide cluster host, port (optional), the volume UUID, and the snapshot UUID to delete that specific snapshot.

Example 2: Delete a snapshot by name

Provide cluster host, port (optional), the volume UUID, and the snapshot name. The node resolves the snapshot name to its UUID and deletes the snapshot.

Links

Discussion