Unregister-PSRepository
Unregisters a repository.
语法
Default (默认值)
Unregister-PSRepository
[-Name] <String[]>
[<CommonParameters>]
说明
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.
示例
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
参数
-Name
Specifies an array of names of the repositories to remove.
参数属性
类型: | String[] |
默认值: | None |
支持通配符: | False |
不显示: | False |
参数集
(All)
Position: | 0 |
必需: | True |
来自管道的值: | False |
来自管道的值(按属性名称): | True |
来自剩余参数的值: | 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.