[DllImport("netapi32.dll", CharSet = CharSet.Unicode, SetLastError = true)] public static extern uint NetShareDel( string servername, string netname, uint reserved );
Microsoft documentation: Link
Last updated 1 year ago