Lab6: Command for removing directory leads to an error
See original GitHub issueModule: 6
Lab: 6, Exercise 2
Exercise 2, task 1
Step: step 3
Description of issue
The command rmdir .\obj /S /Q returns following error
Remove-Item : A positional parameter cannot be found that accepts argument '/S'.
Fix:
using a native PS command e.g. Remove-Item -Path .\obj -Force -Recurse
OR
removing the folder manually in explorer.
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Deleting or removing directories (rmdir command)
Use the rmdir command to remove the directory, specified by the Directory parameter, from the system.
Read more >Can't remove a directory in Unix
In my case, under root, rm -rf (directory) leads to an infinite loop, and size of the folder is under a gig. Furthermore,...
Read more >Delete files in directory without erroring if it's already empty
Since you presumably want to remove all files without prompting, why not just use the -f switch to rm to ignore nonexistent files?...
Read more >How to Remove a Directory in Linux – Delete a Folder ...
You use the rm command to delete files and directories in Linux. ... You will get this error: rm: test: is a directory....
Read more >Why I can't delete a folder?
Try cd into the directory, then remove all files using rm -rf * . Then try going out of the directory and use...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Instructions are confusing. See screenshot.
Changing the directions so it instructs students to open the Windows Terminal to help avoid confusion.