Back to Winget Cli

Remove-WinGetSource

src/PowerShell/Help/Microsoft.WinGet.Client/Remove-WinGetSource.md

1.28.2401.3 KB
Original Source

Remove-WinGetSource

SYNOPSIS

Removes a configured source.

SYNTAX

Remove-WinGetSource -Name <String> [<CommonParameters>]

DESCRIPTION

This command removes a configured WinGet source. By default, there are two sources registered: msstore and winget. You can add more sources using Add-WinGetSource. This command must be executed with administrator permissions.

EXAMPLES

Example 1: Remove a single source by name

powershell
Remove-WinGetSource -Name msstore

The example shows how to remove a WinGet source by name.

PARAMETERS

-Name

Specify the name of the source to be removed.

yaml
Type: System.String
Parameter Sets: (All)
Aliases:

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

CommonParameters

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

INPUTS

System.String

OUTPUTS

System.Object

NOTES

Add-WinGetSource

Reset-WinGetSource