r/PowerShell • u/Ok-Layer6893 • Sep 27 '26
Question Need help with homework 😫
I'm very new to this. I'm asked to delete a directory and all of its files. D:\software\arch98
But when I do this:
PS C:\Users\Administrator\> rmdir D:\software\arch98
It says the directory is not empty.
I'd really appreciate.
0
Upvotes
View all comments
Show parent comment
8
u/KedianX Sep 27 '26
So, none of these are native PowerShell commands, though they are often aliased for compatibility.
Rmdir, attrib, cd, and mkdir are commands available in the Windows command shell (cmd.exe), mostly based on the command syntax from DOS shell (command.com).
So, I think one of two options are true:
Option 1 means you have some studying to do. Option 2 means the test authors have some studying to do.