次の方法で共有


Unregister-PSRepository

リポジトリの登録を解除します。

構文

Default (既定)

Unregister-PSRepository
    [-Name] <String[]>
    [<CommonParameters>]

説明

Unregister-PSRepository コマンドレットは、現在のユーザーのリポジトリの登録を解除します。

これは、Unregister-PSResourceRepository コマンドレットのプロキシ コマンドレットです。 詳細については、「 Unregister-PSResourceRepository」を参照してください。

例 1: リポジトリの登録を解除する

この例では、myNuGetSource という名前のリポジトリの登録を解除します。

Unregister-PSRepository -Name "myNuGetSource"

例 2: すべてのリポジトリの登録を解除する

この例では、 Get-PSRepository を使用して登録されているすべてのリポジトリを取得し、パイプライン 演算子を使用してそれらを渡して登録解除 Unregister-PSRepository します。

Get-PSRepository | Unregister-PSRepository

パラメーター

-Name

削除するリポジトリの名前の配列を指定します。

パラメーターのプロパティ

型:

String[]

規定値:None
ワイルドカードのサポート:False
DontShow:False

パラメーター セット

(All)
配置:0
必須:True
パイプラインからの値:False
プロパティ名別のパイプラインからの値:True
残りの引数からの値:False

CommonParameters

このコマンドレットでは、一般的なパラメーター -Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction、-WarningVariable の各パラメーターがサポートされています。 詳細については、about_CommonParametersを参照してください。

入力

String

出力

Object