Remove-ContentLibrary
This cmdlet removes the specified content libraries.
Syntax
Parameters
Required | Parameter Name | Type | Position | Features | Description |
---|---|---|---|---|---|
required
|
ContentLibrary | ContentLibrary[] | named |
|
Specifies the content libraries you want to remove. |
optional | ProgressAction | ActionPreference | named |
|
|
optional | Server | VIServer[] | named |
|
Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of the Connect-VIServer cmdlet. |
Output
Examples
Example 1
$libraries = Get-ContentLibrary -Name '*obsolete' Remove-ContentLibrary $libraries
Removes all content libraries whose names end in 'obsolete' from the default connected servers.
Related Commands
ContentLibrary
This cmdlet creates a new local or subscribed content library.
Creates a new local or subscribed content library that uses Datastore1 as a repository for its items.
This cmdlet removes the specified content libraries.
This cmdlet modifies content library's properties.
ContentLibraryItem
This cmdlet copies content library items to a local content library.
This cmdlet exports content library item's files to the local machine.
This cmdlet retrieves catalog items from the content library.
This cmdlet creates a new content library item in the specified content library.
This cmdlet removes the specified content library items.
This cmdlet modifies content library item's properties.