Unregister-PSRepository
Unregisters a repository.
Syntax
Default (Default)
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.
Parameter properties
| Type: | String[] |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | 0 |
| Mandatory: | True |
| Value from pipeline: | False |
| Value from pipeline by property name: | True |
| Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.