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

如何删除与Onedrive同步但拒绝停止同步的文件夹?,onedrive,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\:

我正试图删除此项目文件夹,但即使在我运行了
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
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

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

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
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

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

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

它为我修复了它。同步文件夹时似乎出现问题,使您无法删除文件夹,甚至无法进入文件夹,显示错误“重分析点缓冲区中存在的标记无效”。以管理员身份运行此命令可以修复它。请注意,它需要重新启动,可能需要几个小时才能完成。