Autodelete ONTAP snapshots
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
- 
Autodelete snapshots:
volume snapshot autodelete modify -vserver SVM -volume volume -enabled true|false -trigger volume|snap_reserveThe following example autodeletes snapshots for
vol1when the snapshot reserve is exhausted:cluster1::> volume snapshot autodelete modify -vserver vs0 -volume vol1 -enabled true -trigger snap_reserve