← Learn
Dangerous
Remove-Item C:\inetpub\wwwroot -Recurse -Force

windows · powershell · Beginner

Deletes the IIS web root and everything under it, ignoring read-only flags and prompts. -Force is what turns the protections on individual files into no obstacle at all.

Signals to notice

  • -Recurse removes the entire directory tree
  • -Force overrides read-only attributes and confirmation prompts

Think you can spot these under time pressure?

Start Training

More Windows