PowerShell Remove-Item Recurse Parameter Not Specified

IT Support Forum Forums Development PowerShell PowerShell Remove-Item Recurse Parameter Not Specified

Viewing 0 reply threads
  • Author
    Posts
    • #1977
      Webmaster
      Keymaster

      When you use Remove-Item in PowerShell, you get this warning:

      The item at Microsoft.PowerShell.Core\FileSystem::PATH has children and the Recurse parameter was not specified. If you continue, all children will be removed with the item. Are you sure you want to continue?

      This is because you need to specify the -Recurse parameter after the Remove-Item command.

Viewing 0 reply threads
  • You must be logged in to reply to this topic.