deleting local files and copying remote files