PowerShell Remove-Item Recurse Parameter Not Specified

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

This topic contains 0 replies, has 1 voice, and was last updated by  Webmaster 1 month, 2 weeks ago.

  • 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.

You must be logged in to reply to this topic.