Table of contents
ISE
TOC
Collapse the table of content
Expand the table of content

Unregister-PSRepository

JuanPablo Jofre|Last Updated: 12/17/2016
|
3 Contributors

SYNOPSIS

Unregisters a repository.

SYNTAX

Unregister-PSRepository [-Name] <String[]> [<CommonParameters>]

DESCRIPTION

The Unregister-PSRepository cmdlet unregisters a repository for the current user.

EXAMPLES

Example 1: Unregister a repository

PS C:\> Unregister-PSRepository -Name "myNuGetSource"

This command unregisters the repository named myNuGetSource.

Example 2: Unregister all repositories

PS C:\> Get-PSRepository | Unregister-PSRepository

This command uses Get-PSRepository to get all registered repositories, and uses the pipeline operator to pass them to Unregister-PSRepository to unregister them. Note that PSGallery is a built-in repository and cannot be unregistered.

PARAMETERS

-Name

Specifies an array of names of the repositories to remove.

Type: String[]
Parameter Sets: (All)
Aliases: 

Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

CommonParameters

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

INPUTS

OUTPUTS

NOTES

Get-PSRepository

Register-PSRepository

Set-PSRepository

© 2017 Microsoft