Unregister-PSRepository
리포지토리를 등록 취소합니다.
구문
Default (기본값)
Unregister-PSRepository
[-Name] <String[]>
[<CommonParameters>]
Description
Unregister-PSRepository cmdlet은 현재 사용자의 리포지토리를 등록 취소합니다.
예제
예제 1: 리포지토리 등록 취소
다음은 myNuGetSource라는 리포지토리의 등록을 취소하는 예제입니다.
Unregister-PSRepository -Name "myNuGetSource"
예제 2: 모든 리포지토리 등록 취소
이 예제에서는 Get-PSRepository 사용하여 등록된 모든 리포지토리를 가져와 파이프라인 연산자를 사용하여 Unregister-PSRepository 전달하여 등록을 취소합니다.
Get-PSRepository | Unregister-PSRepository
매개 변수
-Name
제거할 리포지토리의 이름 배열을 지정합니다.
매개 변수 속성
| 형식: | String[] |
| Default value: | None |
| 와일드카드 지원: | False |
| DontShow: | False |
매개 변수 집합
(All)
| Position: | 0 |
| 필수: | True |
| 파이프라인의 값: | False |
| 속성 이름별 파이프라인의 값: | True |
| 나머지 인수의 값: | False |
CommonParameters
이 cmdlet은 일반적인 매개 변수인 -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction 및 -WarningVariable 매개 변수를 지원합니다. 자세한 내용은 about_CommonParameters를 참조하세요.