The NetReplImportDirDel function removes the registration of a directory so that it no longer receives updates from the master. Note that this function does not actually delete the directory from the file system. The Replicator service can automatically register the directory service at any time. To prevent the importing of a directory that is being exported by some Replicator service, use the NetReplImportDirLock function instead.
Only members of the Administrators local group or Replicator groups can successfully execute NetReplImportDirDel.
NET_API_STATUS NetReplImportDirDel(
LPWSTR servername,
LPWSTR dirname
);
Windows NT: Requires version 3.1 or later.
Windows: Unsupported.
Windows CE: Unsupported.
Header: Declared in lmrepl.h.
Import Library: Use netapi32.lib.
Networking (Net) Overview, Net Functions, NetReplImportDirAdd