Modified to delete local archive after successful transfer.