Uninstall-ChocolateyZipPackage

Uninstall-ChocolateyZipPackage

Uninstall-ChocolateyZipPackage

Uninstalls a previous installed zip package, may not be necessary.

Syntax

Uninstall-ChocolateyZipPackage `
  -PackageName <String> `
  -ZipFileName <String> `
  [-IgnoredArguments <Object[]>] [<CommonParameters>]

Description

This will uninstall a zip file if installed via Install-ChocolateyZipPackage. This is not necessary if the files are unzipped to the package directory.

Notes

Not necessary if files are unzipped to package directory.

This helper reduces the number of lines one would have to remove the files extracted from a previously installed zip file. This method has error handling built into it.

Aliases

None

Examples

EXAMPLE 1

Uninstall-ChocolateyZipPackage '__NAME__' 'filename.zip'

Inputs

None

Outputs

None

Parameters

-PackageName <String>

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

-ZipFileName <String>

PropertyValue
Aliases
Required?true
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-ChocolateyZipPackage -Full.

View the source for Uninstall-ChocolateyZipPackage