Remove-WssMsoSharePointLibrary

Remove-WssMsoSharePointLibrary

Removes a library.

Sintaxis

Parameter Set: Default
Remove-WssMsoSharePointLibrary [-Library] <SharePointLibrary> [[-Force]] [-Confirm] [-WhatIf] [ <CommonParameters>]

Descripción detallada

The Remove-WssMsoSharePointLibrary cmdlet removes a library. A site stores the library.

Parámetros

-Force

Fuerza que el comando se ejecute sin pedir confirmación al usuario.

Alias

ninguno

¿Requerido?

false

¿Posición?

2

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-Library<SharePointLibrary>

Specifies a library object. The cmdlet removes the library that you specify.

Alias

ninguno

¿Requerido?

true

¿Posición?

1

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByValue, ByPropertyName)

¿Aceptar caracteres comodín?

false

-Confirm

Solicita confirmación antes de ejecutar el cmdlet.

¿Requerido?

false

¿Posición?

named

Valor predeterminado

falso

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-WhatIf

Muestra lo que sucedería si se ejecutara el cmdlet. El cmdlet no se ejecuta.

¿Requerido?

false

¿Posición?

named

Valor predeterminado

falso

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

<CommonParameters>

Este cmdlet admite los siguientes parámetros comunes: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer y -OutVariable. Para obtener más información, consulte about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Entradas

El tipo de entrada es el tipo de los objetos que se pueden canalizar al cmdlet.

  • Microsoft.WindowsServerSolutions.O365Integration.SharePointLibrary

    Library

    Type: Microsoft.WindowsServerSolutions.O365Integration.SharePointLibrary

    Description: SharePoint library

Salidas

El tipo de resultado es el tipo de objetos que emite el cmdlet.

Ejemplos

Example 1: Remove a SharePoint library

The first command uses the Get-WssMsoSharePointLibrary cmdlet to get a library, and stores the result in the $Library variable.

The second command removes the library named $Library.

PS C:\> $Library = Get-WssMsoSharePointLibrary | Select-Object -First 1
PS C:\> Remove-WssMsoSharePointLibrary -Library $Library
PS C:\> 

Temas relacionados

Get-WssMsoSharePointLibrary

New-WssMsoSharePointLibrary

Set-WssMsoSharePointLibrary