We certainly do file deletes this way to archive old data from or servers...
If you log on to the ftp server with them same credientials using a ftp client can you delete the file ? Maybe permission issue ?
We also check the return value at the emFtpSetCurrentDirectory command,what result is ...