Delete the files on server after download using the Automated FTP library

Dman

Active Member
Licensed User
Longtime User
I want to delete all of the files in the folder on of the server after I download them using the Automated FTP library. I have it downloading just fine but I am confused on the command for deleting the fileset on the server.


I see this: DeleteFileSet (VerifyBeforeDelete As Boolean)

in the documentation but am unsure on exactly how to use it.

Any examples?
 

GMan

Well-Known Member
Licensed User
Longtime User
An example was given in the .lib - Thread, this should work:
Delete the lastest FileSet in memory from the server.
If you used a Mask to download a set of files, this function
will delelete all files in that last set.
NOTICE: use with care.

B4X:
DeleteFileSet(False) ' No confirmation
DeleteFileSet(True)  ' Confirmation

Otherwise to delete files:
B4X:
DeleteFile("public/pictures/*.*")
 
Last edited:
Upvote 0
Top