Bird
0
0

Which parameter of Remove-Item allows you to delete all files and folders inside a directory recursively?

easy📝 Conceptual Q2 of 15
PowerShell - File and Directory Operations
Which parameter of Remove-Item allows you to delete all files and folders inside a directory recursively?
A-Recurse
B-Force
C-Verbose
D-Confirm
Step-by-Step Solution
Solution:
  1. Step 1: Identify the parameter for recursive deletion

    The -Recurse parameter tells PowerShell to delete all items inside folders recursively.
  2. Step 2: Understand other parameters

    -Force overrides restrictions, -Verbose shows details, -Confirm asks for confirmation.
  3. Final Answer:

    -Recurse -> Option A
  4. Quick Check:

    Recursive deletion parameter = -Recurse [OK]
Quick Trick: Use -Recurse to delete folders and all contents [OK]
Common Mistakes:
  • Using -Force to recurse
  • Confusing -Verbose with deletion
  • Expecting -Confirm to delete recursively

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PowerShell Quizzes