This can be easily done using the Rebex.IO.FileSet
class:
// define FileSet
var set = new FileSet("/home/data");
set.Include("cash*.csv");
set.Include("EFT*.csv");
set.Include("DDR*.csv");
Then you can use it like this:
// download then delete
client.Download(set, @"C:\data");
client.Delete(set);
Or even in single line:
// move = after succesfull download delete file immediately
client.Download(set, @"C:\data", TransferMethod.Move, ActionOnExistingFiles.ThrowException);