Skip to main content

Autodelete snapshots with ONTAP

Contributors netapp-aaron-holt netapp-dbagwell netapp-pcarriga netapp-aherbin

You can use the volume snapshot autodelete modify command to trigger automatic deletion of snapshots when the Snapshot reserve is exceeded. By default, the oldest snapshots are deleted first. Learn more about volume snapshot autodelete modify in the ONTAP command reference.

About this task

LUN and file clones are deleted when there are no more snapshots to be deleted.

Step
  1. Autodelete snapshots:

    volume snapshot autodelete modify -vserver SVM -volume volume -enabled true|false -trigger volume|snap_reserve

    The following example autodeletes snapshots for vol1 when the snapshot reserve is exhausted:

    cluster1::> volume snapshot autodelete modify -vserver vs0 -volume vol1 -enabled true -trigger snap_reserve