次の方法で共有


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
DontShow:False

パラメーター セット

(All)
配置: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.

入力

String

出力

Object