Uninstall-BinFile

Uninstall-BinFile

Uninstall-BinFile

Removes a shim (or batch redirect) for a file.

Syntax

Uninstall-BinFile `
  -Name <String> `
  [-Path <String>] `
  [-IgnoredArguments <Object[]>] [<CommonParameters>]

Description

Chocolatey installs have the folder $($env:ChocolateyInstall)\bin included in the PATH environment variable. Chocolatey automatically shims executables in package folders that are not explicitly ignored, putting them into the bin folder (and subsequently onto the PATH).

When you have other files you have shimmed, you need to use this function to remove them from the bin folder.

Notes

Not normally needed for exe files in the package folder, those are automatically discovered and the shims removed.

Aliases

Remove-BinFile

Inputs

None

Outputs

None

Parameters

-Name <String>

PropertyValue
Aliases
Required?true
Position?1
Default Value
Accept Pipeline Input?false

-Path [<String>]

PropertyValue
Aliases
Required?false
Position?2
Default Value
Accept Pipeline Input?false

-IgnoredArguments [<Object[]>]

PropertyValue
Aliases
Required?false
Position?named
Default Value
Accept Pipeline Input?false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters http://go.microsoft.com/fwlink/p/?LinkID=113216 .

Function Reference

:choco-info: NOTE

This documentation has been automatically generated from Import-Module "$env:ChocolateyInstall\helpers\chocolateyInstaller.psm1" -Force; Get-Help Uninstall-BinFile -Full.

View the source for Uninstall-BinFile