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 |
Unregisters a repository.
Unregister-PSRepository [-Name] <String[]> [<CommonParameters>]
The Unregister-PSRepository
cmdlet unregisters a repository for the current user.
This example unregisters the repository named myNuGetSource.
Unregister-PSRepository -Name "myNuGetSource"
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
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
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.