The method Delete deletes the file specified by the AFile parameter.
The function returns the following error codes:
0 ... everything is OK
-2 ... file not found
-3 ... cannot read file (access error)
-9 ... unspecified error
Hint 1:
Most FTP servers are Unix-based. Thus the path to the file (AFile) normally uses slashes (/) instead of backslashes (\) to separate directories. Failing to use the correct separation character will result in an error (-2).