Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
705 views
in Technique[技术] by (71.8m points)

onedrive - Unable to delete (uninstall) vcpkg

I installed vcpkg following this instruction, and later figured out that I don't need it.

I've done vcpkg integrate remove before deleting as explained in This post.

I can delete every folder except the vcpkg/ports/armadillo folder, which gives the following error when running Remove-item -path armadillo -recurse -force in PowerShell:

Remove-item : There is a mismatch between the tag specified in the request and the tag present in the reparse point
At line:1 char:1
+ Remove-item -path armadillo -recurse -force
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Remove-Item], Win32Exception
    + FullyQualifiedErrorId : System.ComponentModel.Win32Exception,Microsoft.PowerShell.Commands.RemoveItemCommand

The command worked when removing all the other folders, and unfortunately, I can't make sense of the error message. It may be a permissions issue since it is located in a OneDrive folder, but I have gone online and deleted the whole vcpkg folder from the browser version of OneDrive, and I still cannot delete it locally. When going in to the folder and typing ls, I get this error:

ls : The tag present in the reparse point buffer is invalid.
At line:1 char:1
+ ls
+ ~~
    + CategoryInfo          : ReadError: (C:Usersamundm...portsarmadillo:String) [Get-ChildItem], IOException
    + FullyQualifiedErrorId : DirIOError,Microsoft.PowerShell.Commands.GetChildItemCommand

Googeling the error just gives me solutions involving admin rights, which I do not have on this company machine.

How do I go on to remove this folder?

question from:https://stackoverflow.com/questions/65848498/unable-to-delete-uninstall-vcpkg

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...