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
Bendradarbiaukite su mumis dirbdami „GitHub“
Šio turinio šaltinį galima rasti „GitHub“, kur taip pat galite kurti ir peržiūrėti problemas bei teikti užklausas. Daugiau informacijos žr. mūsų bendraautorių vadove.