Unregister-PSRepository
Unregisters a repository.
Syntax
Unregister-PSRepository
[-Name] <String[]>
[<CommonParameters>]
Description
The Unregister-PSRepository
cmdlet unregisters a repository for the current user.
This is a proxy cmdlet for the Unregister-PSResourceRepository
cmdlet in the
Microsoft.PowerShell.PSResourceGet. For more information, see
Unregister-PSResourceRepository.
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 |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Inputs
String[]
Outputs
Related Links
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
PSResourceGet