Skip to content

Latest commit

 

History

History
90 lines (61 loc) · 2.07 KB

File metadata and controls

90 lines (61 loc) · 2.07 KB
external help file PSModule-help.xml
Locale en-US
Module Name PowerShellGet
ms.custom 3.0.22-beta22
ms.date 09/19/2023
online version https://learn.microsoft.com/powershell/module/powershellget/unregister-psrepository?view=powershellget-2.x&WT.mc_id=ps-gethelp
schema 2.0.0
title Unregister-PSRepository

Unregister-PSRepository

SYNOPSIS

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: System.String[]
Parameter Sets: (All)
Aliases:

Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

System.String[]

OUTPUTS

System.Object

NOTES

RELATED LINKS

Get-PSRepository

Register-PSRepository

Set-PSRepository