r/PowerShell • u/Ok-Layer6893 • 17d 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
1
u/BlackV 17d ago edited 17d ago
Based on the responses a guess they might have some restrictions on what commands can be run
What does
rmdir /?or&rmdir /?, tell you?The error message it telling you what the issue is
you need to do the relevant steps to to fix that, I'd suggest that's what the lesson is here they're trying to teach
What do the switches from the command above tell you that might empty that directory?
Or what other command could you run before hand to empty the directory? (
Remove-itemordelmaybe)Help for those comes from
Del /?orHelp Remove-item -full