You can enable the SnapLock privileged delete feature by using Data ONTAP APIs.
Using C#
void set_privdel_on(string serverip, string serverusername, string serverpasswd, string snaplockenterprisevolume) { NaElement xi; NaElement xo; NaServer s; try { //Initialize connection to server, and //request version 1.3 of the API set s = new NaServer(serverip, 1, 3); s.Style = NaServer.AUTH_STYLE.LOGIN_PASSWORD; s.SetAdminUser(serverusername, serverpasswd); //Set the privileged delete option ON xi = new NaElement("snaplock-set-options"); xi.AddNewChild("option", "privdel"); xi.AddNewChild("option-value", "on"); xi.AddNewChild("volume", snaplockenterprisevolume); //Invoke snaplock-set-options ONTAP API xo = s.InvokeElem(xi); } catch (Exception e) { Console.Error.WriteLine(e.Message); } }