Skip to content

Latest commit

 

History

History
83 lines (55 loc) · 1.8 KB

File metadata and controls

83 lines (55 loc) · 1.8 KB
external help file Locale Module Name ms.date online version schema title
PSModule-help.xml
en-US
PowerShellGet
06/09/2017
2.0.0
Unregister-PSRepository

Unregister-PSRepository

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

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: System.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.

INPUTS

System.String[]

OUTPUTS

System.Object

NOTES

RELATED LINKS

Get-PSRepository

Register-PSRepository

Set-PSRepository