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(
LPTSTR servername, | |
LPTSTR dirname | |
); |