Skip to content

Commit

Permalink
Fix #4118 - remove invalid statement (#4181)
Browse files Browse the repository at this point in the history
* Fix #4118 - remove invalid statement

* feedback
  • Loading branch information
sdwheeler authored and DCtheGeek committed Apr 20, 2019
1 parent efea0e5 commit 2e3cb13
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 41 deletions.
42 changes: 25 additions & 17 deletions reference/5.0/PowershellGet/Unregister-PSRepository.md
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -20,28 +20,33 @@ Unregister-PSRepository [-Name] <String[]> [<CommonParameters>]
```

## 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
Expand All @@ -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
Expand Down
29 changes: 17 additions & 12 deletions reference/5.1/PowershellGet/Unregister-PSRepository.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ online version: http://go.microsoft.com/fwlink/?LinkId=821675
schema: 2.0.0
title: Unregister-PSRepository
---

# Unregister-PSRepository

## SYNOPSIS
Expand All @@ -21,28 +20,31 @@ Unregister-PSRepository [-Name] <String[]> [<CommonParameters>]
```

## 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
Expand All @@ -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
Expand Down
29 changes: 17 additions & 12 deletions reference/6/PowerShellGet/Unregister-PSRepository.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ online version: http://go.microsoft.com/fwlink/?LinkId=821675
schema: 2.0.0
title: Unregister-PSRepository
---

# Unregister-PSRepository

## SYNOPSIS
Expand All @@ -21,28 +20,31 @@ Unregister-PSRepository [-Name] <String[]> [<CommonParameters>]
```

## 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
Expand All @@ -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
Expand Down

0 comments on commit 2e3cb13

Please sign in to comment.