Comments on: CMD Delete Folder: Delete Files and Folders using Command Line https://www.itechtics.com/cmd-delete-folder/ Making Technology Accessible Wed, 31 Aug 2022 07:54:40 +0000 hourly 1 https://wordpress.org/?v=6.4.1 By: Usman Khurshid https://www.itechtics.com/cmd-delete-folder/#comment-312758 Sat, 19 Feb 2022 13:30:56 +0000 https://www.itechtics.com/?p=51640#comment-312758 In reply to Alistair Barclay.

You can also forcefully delete a file or folder using PowerShell:

Remove-Item –path D:\Games\RON –recurse

]]>
By: Usman Khurshid https://www.itechtics.com/cmd-delete-folder/#comment-312757 Sat, 19 Feb 2022 13:27:22 +0000 https://www.itechtics.com/?p=51640#comment-312757 In reply to Alistair Barclay.

To forcefully delete a folder, you can use the following command:

rmdir /s folderpath

For example, if I want to forcefully delete D:\Games\RON folder, I’ll run the following command:

rmdir /s D:\Games\RON

]]>
By: Alistair Barclay https://www.itechtics.com/cmd-delete-folder/#comment-312688 Fri, 18 Feb 2022 14:13:05 +0000 https://www.itechtics.com/?p=51640#comment-312688 I have a folder which I cannot remove as one file within it is according to windows already erased.
This is shown as this file named Stevens Alec. file 0kb size
i cannot get any command in powershell to remove it and because it is empty I cannot remove any of the higher parent files?
the structure is this pc >finished video >kill2 >deep> DCIM >701
in 701 is the empty file named Stevens Alec which I cannot rename or anything.
Any suggestions ?
btw your article is really helpful, thank you, from a old man who has forgotten his dos commands.

]]>