NetShareDel or Net32ShareDel

The NetShareDel API deletes a netname from the list of shared resources of a server.

When this function deletes a netname, all connections to the shared resource are disconnected.