diff --git a/reference/5.0/PowershellGet/Unregister-PSRepository.md b/reference/5.0/PowershellGet/Unregister-PSRepository.md index e5ab1a1c4bfb..f0d5d4486290 100644 --- a/reference/5.0/PowershellGet/Unregister-PSRepository.md +++ b/reference/5.0/PowershellGet/Unregister-PSRepository.md @@ -1,13 +1,13 @@ --- -ms.date: 06/09/2017 -schema: 2.0.0 -locale: en-us -keywords: powershell,cmdlet -online version: http://go.microsoft.com/fwlink/?LinkId=821675 -external help file: PSGet-help.xml -title: Unregister-PSRepository +external help file: PSModule-help.xml +keywords: powershell,cmdlet +locale: en-us +Module Name: PowerShellGet +ms.date: 06/09/2017 +online version: http://go.microsoft.com/fwlink/?LinkId=821675 +schema: 2.0.0 +title: Unregister-PSRepository --- - # Unregister-PSRepository ## SYNOPSIS @@ -20,28 +20,33 @@ Unregister-PSRepository [-Name] [] ``` ## DESCRIPTION -The **Unregister-PSRepository** cmdlet unregisters a repository for the current user. + +The `Unregister-PSRepository` cmdlet unregisters a repository for the current user. ## EXAMPLES ### Example 1: Unregister a repository -``` -PS C:\> Unregister-PSRepository -Name "myNuGetSource" -``` -This command unregisters the repository named myNuGetSource. +This example unregisters the repository named myNuGetSource. -### Example 2: Unregister all repositories +```powershell +Unregister-PSRepository -Name "myNuGetSource" ``` -PS C:\> Get-PSRepository | Unregister-PSRepository + +### 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. + +```powershell +Get-PSRepository | Unregister-PSRepository ``` -This command uses Get-PSRepository to get all registered repositories, and uses the pipeline operator to pass them to **Unregister-PSRepository** to unregister them. Note that PSGallery is a built-in repository and cannot be unregistered. ## PARAMETERS ### -Name + Specifies an array of names of the repositories to remove. ```yaml @@ -57,7 +62,10 @@ 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 (http://go.microsoft.com/fwlink/?LinkID=113216). + +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, +-InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, +-WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). ## INPUTS diff --git a/reference/5.1/PowershellGet/Unregister-PSRepository.md b/reference/5.1/PowershellGet/Unregister-PSRepository.md index 5a5060ca28c2..f3d4714fd311 100644 --- a/reference/5.1/PowershellGet/Unregister-PSRepository.md +++ b/reference/5.1/PowershellGet/Unregister-PSRepository.md @@ -8,7 +8,6 @@ online version: http://go.microsoft.com/fwlink/?LinkId=821675 schema: 2.0.0 title: Unregister-PSRepository --- - # Unregister-PSRepository ## SYNOPSIS @@ -21,28 +20,31 @@ Unregister-PSRepository [-Name] [] ``` ## DESCRIPTION -The **Unregister-PSRepository** cmdlet unregisters a repository for the current user. + +The `Unregister-PSRepository` cmdlet unregisters a repository for the current user. ## EXAMPLES ### Example 1: Unregister a repository -``` -PS C:\> Unregister-PSRepository -Name "myNuGetSource" -``` -This command unregisters the repository named myNuGetSource. +This example unregisters the repository named myNuGetSource. -### Example 2: Unregister all repositories -``` -PS C:\> Get-PSRepository | Unregister-PSRepository +```powershell +Unregister-PSRepository -Name "myNuGetSource" ``` -This command uses Get-PSRepository to get all registered repositories, and uses the pipeline operator to pass them to **Unregister-PSRepository** to unregister them. -Note that PSGallery is a built-in repository and cannot be unregistered. +### 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. + +```powershell +Get-PSRepository | Unregister-PSRepository +``` ## PARAMETERS ### -Name + Specifies an array of names of the repositories to remove. ```yaml @@ -58,7 +60,10 @@ 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 (http://go.microsoft.com/fwlink/?LinkID=113216). + +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, +-InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, +-WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). ## INPUTS diff --git a/reference/6/PowerShellGet/Unregister-PSRepository.md b/reference/6/PowerShellGet/Unregister-PSRepository.md index 5a5060ca28c2..f3d4714fd311 100644 --- a/reference/6/PowerShellGet/Unregister-PSRepository.md +++ b/reference/6/PowerShellGet/Unregister-PSRepository.md @@ -8,7 +8,6 @@ online version: http://go.microsoft.com/fwlink/?LinkId=821675 schema: 2.0.0 title: Unregister-PSRepository --- - # Unregister-PSRepository ## SYNOPSIS @@ -21,28 +20,31 @@ Unregister-PSRepository [-Name] [] ``` ## DESCRIPTION -The **Unregister-PSRepository** cmdlet unregisters a repository for the current user. + +The `Unregister-PSRepository` cmdlet unregisters a repository for the current user. ## EXAMPLES ### Example 1: Unregister a repository -``` -PS C:\> Unregister-PSRepository -Name "myNuGetSource" -``` -This command unregisters the repository named myNuGetSource. +This example unregisters the repository named myNuGetSource. -### Example 2: Unregister all repositories -``` -PS C:\> Get-PSRepository | Unregister-PSRepository +```powershell +Unregister-PSRepository -Name "myNuGetSource" ``` -This command uses Get-PSRepository to get all registered repositories, and uses the pipeline operator to pass them to **Unregister-PSRepository** to unregister them. -Note that PSGallery is a built-in repository and cannot be unregistered. +### 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. + +```powershell +Get-PSRepository | Unregister-PSRepository +``` ## PARAMETERS ### -Name + Specifies an array of names of the repositories to remove. ```yaml @@ -58,7 +60,10 @@ 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 (http://go.microsoft.com/fwlink/?LinkID=113216). + +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, +-InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, +-WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). ## INPUTS