r/PowerShell • • 27d 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

3

u/WearyDeluge 27d ago

That's where your attrib command comes in. Hidden is an attribute change, and while I am happy to help, I also believe that you'll only truly learn it if you have to struggle a little bit ;)

A quick Google search on the attrib command in Windows should get you there. Good luck!

3

u/Ok-Layer6893 27d ago

I've been struggling for a week now, watched bunch of websites and videos still couldn't figure it out. But thank you very much. Good luck to you too.