NetUseDel or Net32UseDel

The NetUseDel API ends a connection between a local or UNC device name and a shared resource.