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>

The name of the redirect file without ".exe" appended to it.

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

-Path [<String>]

The path to the original file. Can be relative from
$($env:ChocolateyInstall)\bin back to your file or a full path to the
file.

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

-IgnoredArguments [<Object[]>]

Allows splatting with arguments that do not apply. Do not use directly.

Property Value
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

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