| external help file | PSModule-help.xml |
|---|---|
| Locale | en-US |
| Module Name | PowerShellGet |
| ms.date | 06/09/2017 |
| online version | https://learn.microsoft.com/powershell/module/powershellget/unregister-psrepository?view=powershellget-1.x&WT.mc_id=ps-gethelp |
| schema | 2.0.0 |
| title | 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-PSRepositorySpecifies 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: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.