How to create a .bat to delete file in a remote ftp?

Hello,
please how to create a .bat to delete file in a remote ftp ?

Example:
rclone config create Test ftp --ftp-host ftpmyftpsitehere.it --ftp-user myuserftp --ftp-pass mypasswordfaccountftp
rclone delete --min-age 1d Test:generic/generic/

this is the answer after using that commands
2019/11/08 17:21:06 Failed to create file system for "Test:generic/generic/": NewFS decrypt password: input too short when revealing password - is it obscured?
I don't understand.
The password I entered is correct

Thank you

then seconse messagge is:

2019/11/08 17:28:00 ERROR : : error listing: directory not found
2019/11/08 17:28:00 ERROR : Attempt 1/3 failed with 2 errors and: directory not found
2019/11/08 17:28:00 ERROR : : error listing: directory not found
2019/11/08 17:28:00 ERROR : Attempt 2/3 failed with 2 errors and: directory not found
2019/11/08 17:28:00 ERROR : : error listing: directory not found
2019/11/08 17:28:00 ERROR : Attempt 3/3 failed with 2 errors and: directory not found
2019/11/08 17:28:00 Failed to delete with 2 errors: last error was: directory not found

You need to obscure the password before passing it to rclone so use the result of

rclone obscure mypasswordfaccountftp

as the parameter to -ftp-pass

Thank you very much.
Now i have other question:

D:\rclone>rclone lsd test
2019/11/12 17:26:01 ERROR : : error listing: directory not found
2019/11/12 17:26:01 Failed to lsd with 2 errors: last error was: directory not found

Thank you in advance

You forgot the : on the end of test so it is looking for a local directory

ok great,
thanks

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.