To remove multiple files in FTP

We have a files in FTP server..... after getting the files from FTP by

mget *.*

i hav to remove all files (multiple files) at once...

is there any command to delete multiple files at once

It's pretty dangerous using mget *.* and then mdel *.*

If a file is created on the ftp server your while your mget command is fetching files, this new file will not be fetched but mdel will delete it. The dnd result is you delete a file that hasn't been transfered.

So, if there is any chance of files appearing while you are fetching data you would be better off doing a ls on the remote server to get a current file list and then building a set of individual get and del commands for each file found.