Deleting files from Windows Share

Post any question you may have in regards to GoAnywhere Director and let our talented support staff and other users assist you.
2 posts Page 1 of 1


Posts: 5
Joined: Thu Sep 27, 2012 12:09 pm

Post by gmoisant » Tue Apr 15, 2014 2:25 pm
How do I delete files from a windows share using a filelist variable?


Support Specialist
Posts: 592
Joined: Tue Jul 17, 2012 2:12 pm
Location: Phoenix, AZ

Post by Support_Rick » Tue Apr 15, 2014 3:13 pm
Create your Windows Share File List Variable:
Code: Select all
		<createFileList label="Create Filelist" fileListVariable="MyFileList" version="1.0">
			<fileset dir="\\MyServer\MySubFolder\MyFolderLocation\" recursive="false">
					<include pattern="*.txt" caseSensitive="false" />
Then, execute the Delete Task with the variable created in the CreateFileList above:
Code: Select all
		<delete label="Delete My Original Files" inputFilesVariable="${MyFileList}" version="1.0"/>
Keep in mind, the FileList Variable could be created via a Monitor, Copy, Rename, Delete, FTP,and several other ways. Not just by a CreateFileList.
Rick Elliott
Lead Solutions Consultant
(402) 944.4242
(800) 949-4696
2 posts Page 1 of 1