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
PSResourceGet
คำติชม
https://aka.ms/ContentUserFeedback
เร็วๆ นี้: ตลอดปี 2024 เราจะขจัดปัญหา GitHub เพื่อเป็นกลไกคำติชมสำหรับเนื้อหา และแทนที่ด้วยระบบคำติชมใหม่ สำหรับข้อมูลเพิ่มเติม ให้ดู:ส่งและดูข้อคิดเห็นสำหรับ