delete and upload remote file