Skip to content

Commit 21c7a80

Browse files
Merge pull request #947 from JQ1u/MicrosoftDocs/add-param-remove-brand-center
Add new param for Remove-SPOOrgAssetsLibrary
2 parents 480cc0a + 133a382 commit 21c7a80

File tree

1 file changed

+36
-2
lines changed

1 file changed

+36
-2
lines changed

sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Remove-SPOOrgAssetsLibrary.md

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,22 @@ Removes a library that was designated as a central location for organization ass
1919

2020
## SYNTAX
2121

22+
### RemoveLibrary (Default)
2223
```
2324
Remove-SPOOrgAssetsLibrary [-LibraryUrl <String>] [-ListId <Guid>] [-WhatIf] [-Confirm] [<CommonParameters>]
2425
```
2526

27+
### BrandCenter
28+
```
29+
Remove-SPOOrgAssetsLibrary [-BrandCenter] [-WhatIf] [-Confirm] [<CommonParameters>]
30+
```
31+
2632
## DESCRIPTION
2733

2834
The Remove-SPOOrgAssetsLibrary cmdlet removes a library that was designated as a central location for organization assets across the tenant. Once this cmdlet is run, this library will no longer be accessible from the "Your organization" tab in the file picker (it might take up to 24 hours before the change applies). When running the cmdlet, either the library URL or library ID (not both) needs to be indicated.
2935

36+
When used with the `-BrandCenter` parameter, this cmdlet removes Brand Center related organization assets libraries and deactivates Brand Center features for the tenant.
37+
3038
Once the library is removed, CDN will still be enabled for this library. To disable CDN for this library, use Remove-SPOTenantCdnOrigin with the server relative URL (example: /sites/branding/assets).
3139

3240
## EXAMPLES
@@ -39,6 +47,14 @@ This example removes https://contoso.sharepoint.com/sites/branding/Assets as a d
3947
Remove-SPOOrgAssetsLibrary -ListId 58454454-6546-6466-9769-646464623988
4048
```
4149

50+
### Example 2
51+
52+
This example removes Brand Center related organization assets libraries and deactivates Brand Center features for the tenant.
53+
54+
```powershell
55+
Remove-SPOOrgAssetsLibrary -BrandCenter
56+
```
57+
4258
## PARAMETERS
4359

4460
### -LibraryUrl
@@ -49,7 +65,7 @@ Indicates the server relative URL of the library to be removed as a central loca
4965

5066
```yaml
5167
Type: System.String
52-
Parameter Sets: (All)
68+
Parameter Sets: RemoveLibrary
5369
Aliases:
5470

5571
Required: False
@@ -67,7 +83,25 @@ Indicates the library ID for the library to be removed as a central location for
6783
6884
```yaml
6985
Type: System.Guid
70-
Parameter Sets: (All)
86+
Parameter Sets: RemoveLibrary
87+
Aliases:
88+
89+
Required: False
90+
Position: Named
91+
Default value: None
92+
Accept pipeline input: False
93+
Accept wildcard characters: False
94+
```
95+
96+
### -BrandCenter
97+
98+
> Applicable: SharePoint Online
99+
100+
Deactivates Brand Center features for the tenant.
101+
102+
```yaml
103+
Type: System.Management.Automation.SwitchParameter
104+
Parameter Sets: BrandCenter
71105
Aliases:
72106

73107
Required: False

0 commit comments

Comments
 (0)