Sharepoint Move File, Download FIle, Delete File

Could you please help me to design the code for Download, Delete and Move File.

I tried to design the same for Move file but it’s not working -

Dim user As System.String=SPUserName
Dim pass As System.String=SPPassword

Dim crendetial As Microsoft.SharePoint.Client.SharePointOnlineCredentials=Nothing
Dim ctx As Microsoft.SharePoint.Client.ClientContext=Nothing
Dim web As Microsoft.SharePoint.Client.Web=Nothing

Dim secpass As System.Security.SecureString=New System.Security.SecureString()
For Each ch As Char In pass.ToCharArray
secpass.AppendChar(ch)
Next

Try
crendetial=New Microsoft.SharePoint.Client.SharePointOnlineCredentials(user,secpass)
ctx=New Microsoft.SharePoint.Client.ClientContext(SPBaseSite)

ctx.Credentials=crendetial

web=ctx.Web

Dim barRootFolderRelativeUrl As System.String=SPBaseSite+SPRelativePath
Dim targetRootFolderRelativeUrl As System.String=SPBaseSite+SPTargetPath
System.Windows.MessageBox.Show(targetRootFolderRelativeUrl)
Dim barFolder As Microsoft.SharePoint.Client.Folder=web.GetFolderByServerRelativeUrl(barRootFolderRelativeUrl)
Dim targetFolder As Microsoft.SharePoint.Client.Folder=web.GetFolderByServerRelativeUrl(targetRootFolderRelativeUrl)

ctx.Load(barFolder, Function(f2) f2.Files)
ctx.ExecuteQuery()

ctx.Load(targetFolder,Function(x) x.ServerRelativeUrl)
ctx.ExecuteQuery()

    For Each f As Microsoft.SharePoint.Client.File In barFolder.Files
	System.Windows.MessageBox.Show(f.LinkingUrl)
		f.MoveTo(targetRootFolderRelativeUrl,MoveOperations.Overwrite)
		ctx.ExecuteQuery()
    Next

Catch es As System.Exception
Console.WriteLine(es.Message)

End Try