Download and remove files

I am trying to use the DownloadDirectory.wsf script to move files from a remote server to my local machine. However, this script only copies files. I would like to remove the files from the remote server after I have downloaded them. Does anyone have a script that will do this.

Thanks