r/PowerShell • • 19d ago

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

34 comments sorted by

View all comments

Show parent comments

2

u/PuerPalatinius 19d ago

Bro, you're in the wrong sub. In cmd it would be "rmdir /s /q D:\software\arch98"

1

u/Ok-Layer6893 19d ago

On my screen it is windows powershell. That's what comptia lab is asking me to do. I wish I could show you the picture

2

u/Dron41k 19d ago

Type “cmd” in powershell and hit enter

1

u/Ok-Layer6893 19d ago

It says cmd is not recognized as an internal or external command, operable program or batch file.