0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

多重構造で削除できないフォルダを削除する方法

Posted at

コマンドの失敗などで多重階層のフォルダが作成されてしまい、削除しようとしても失敗してしまうときの対処法です。OSはwindowsです。

1.PowerShellを管理者権限で実行
 検索して右クリックで管理者として開きます
2.以下コマンドを実行
folderは実際のパスに置き換えてください
強制的に削除するので必ずパスを確認してください
実行する前に削除するべきか再度確認してください

Remove-Item "\\?\C:\folder\folder" -Recurse -Force

3.何も反応がない状態であれば、削除中です
 パスの長さにもよりますが、数分で完了します
cdが表示されるまで気長に待ちましょう・・・笑

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?