Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 25 additions & 16 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,20 +20,25 @@ 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.
Expand All @@ -42,6 +47,7 @@ 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 +63,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