in reply to copy files on sftp to local dir and delete copied file
+1
Update: I guess a plus one doesn't mean anything here, but what I mean is I agree that rsync can probably provide a solution.
Update 2: Specifically, I recommend trying Perl module File::Rsync.