Unregister-PSRepository

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

This example unregisters the repository named myNuGetSource.

Unregister-PSRepository -Name "myNuGetSource"

Example 2: Unregister all repositories

This example uses Get-PSRepository to get all registered repositories, and uses the pipeline operator to pass them to Unregister-PSRepository to unregister them.

Get-PSRepository | Unregister-PSRepository

Parameters

-Name

Specifies an array of names of the repositories to remove.

Type:String[]
Position:0
Default value:None
Accept pipeline input:True
Accept wildcard characters:False

Inputs

String[]

Outputs

Object