如何删除已与 Onedrive 同步但拒绝停止同步的文件夹?

Ken*_*dor 5 onedrive

我试图删除这个项目文件夹,但即使在我运行后它仍然拒绝我rm -force。它向我展示了这个:

is an NTFS junction point. Use the Force parameter to delete or modify this object.
At line:1 char:1
+ rm .\db\
+ ~~~~~~~~
    + CategoryInfo          : WriteError: (C:\Users\KenGon...git\objects\db\:DirectoryInfo) [Remove-Item], IOException
    + FullyQualifiedErrorId : DirectoryNotEmpty,Microsoft.PowerShell.Commands.RemoveItemCommand
Run Code Online (Sandbox Code Playgroud)

rm : There is a mismatch between the tag specified in the request and the tag present in the reparse point
At line:1 char:1
+ rm .\db\ -force
+ ~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Remove-Item], Win32Exception
    + FullyQualifiedErrorId : System.ComponentModel.Win32Exception,Microsoft.PowerShell.Commands.RemoveItemCommand
Run Code Online (Sandbox Code Playgroud)

当移动到文件夹并尝试列出文件夹内容时,它会向我显示以下内容:

ls : The tag present in the reparse point buffer is invalid.
At line:1 char:1
+ ls
+ ~~
    + CategoryInfo          : ReadError: (C:\Users\KenGon....git\objects\db:String) [Get-ChildItem], IOException
    + FullyQualifiedErrorId : DirIOError,Microsoft.PowerShell.Commands.GetChildItemCommand
Run Code Online (Sandbox Code Playgroud)

有什么方法可以删除这个文件夹吗?我已经停止与 OneDrive 同步并重新启动了多次。我在微软论坛上找到的建议似乎没有帮助。即使暂停同步后,文件夹仍然显示蓝色圆形箭头 - 仍在同步?

Ken*_*dor 2

这很愚蠢,但我跑了chkdsk /f /r并且不得不强行重新启动我的计算机。不确定导致文件夹不可变的确切错误是什么。当我在同步时尝试删除 OneDrive 时,似乎有些数据已损坏,从而导致了一些问题。