DocumentFiles RemoveDir¶ Removes a directory from a remote environment. 1myDocumentFiles.RemoveDir(options: FileTransferOptions):boolean Parameters¶ FileTransferOptions options An instance of FileTransferOptions specifying the remote directory. Returns¶ true if the directory was removed; otherwise, false. Examples¶ Remove a processed export directory¶ 1 2 3 4 5 6 7 8 9 10 11var removed = $Files.RemoveDir({ RemoteHost : 'sftp.example.com', RemotePath : 'exports/' + $Xml.Evaluate('BatchNumber'), Protocol : 'SFTP', UserName : 'transfer', Password : 'secret' }); if (!removed) { console.warn('Export directory could not be removed.'); } See Also¶ FileTransferOptions