Skip to content

Commit d7caa96

Browse files
authored
Merge pull request MicrosoftDocs#3942 from Maralesfahanpoor/maesfaha/UpdateSetAndRemove
Update Set and Remove OrganizationAssets CMDLet
2 parents bb9179d + 8edb17b commit d7caa96

File tree

2 files changed

+27
-10
lines changed

2 files changed

+27
-10
lines changed

sharepoint/sharepoint-ps/sharepoint-online/Remove-SPOOrgAssetsLibrary.md

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,28 @@ Removes a library that was designated as a central location for organization ass
2020
## SYNTAX
2121

2222
```powershell
23-
Remove-SPOOrgAssetsLibrary -LibraryUrl <String> -ShouldRemoveFromCdn <Boolean>
24-
[<CommonParameters>]
23+
Remove-SPOOrgAssetsLibrary [-LibraryUrl <String>] [-ListId <Guid>] [<CommonParameters>]
2524
```
2625

2726
## DESCRIPTION
2827

29-
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.
28+
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. When running the cmdlet, either the library URL or library ID (not both) needs to be indicated.
29+
30+
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).
3031

3132
## EXAMPLES
3233

3334
### Example 1
3435

35-
This example removes https://contoso.sharepoint.com/sites/branding/Assets as a designated library. Assets within this library will no longer be accessible from the "Your organization" tab in the file picker.
36+
This example removes https://contoso.sharepoint.com/sites/branding/Assets as a designated library using the library ID. Assets within this library will no longer be accessible from the "Your organization" tab in the file picker.
37+
38+
```powershell
39+
Remove-SPOOrgAssetsLibrary -ListId 58454454-6546-6466-9769-646464623988
40+
```
41+
42+
### Example 2
43+
44+
This example removes https://contoso.sharepoint.com/sites/branding/Assets as a designated library using the library URL. Assets within this library will no longer be accessible from the "Your organization" tab in the file picker.
3645

3746
```powershell
3847
Remove-SPOOrgAssetsLibrary -LibraryURL sites/branding/Assets
@@ -49,23 +58,23 @@ Type: String
4958
Parameter Sets: (All)
5059
Aliases:
5160
Applicable: SharePoint Online
52-
Required: True
61+
Required: False
5362
Position: Named
5463
Default value: None
5564
Accept pipeline input: False
5665
Accept wildcard characters: False
5766
```
5867
59-
### -ShouldRemoveFromCdn
68+
### -ListId
6069
61-
Remove CDN from the designated library.
70+
Indicates the library ID for the library to be removed as a central location for organization assets.
6271
6372
```yaml
64-
Type: Boolean
73+
Type: Guid
6574
Parameter Sets: (All)
6675
Aliases:
6776
Applicable: SharePoint Online
68-
Required: True
77+
Required: False
6978
Position: Named
7079
Default value: None
7180
Accept pipeline input: False

sharepoint/sharepoint-ps/sharepoint-online/Set-SPOOrgAssetsLibrary.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,20 @@ The Set-SPOOrgAssetsLibrary cmdlet updates information for a library that is des
3131

3232
### Example 1
3333

34-
This example updates the thumbnail publicly displayed for the library to contosologo2.jpg.
34+
This example updates the thumbnail URL publicly displayed for the library to contosologo2.jpg.
3535

3636
```powershell
3737
Set-SPOOrgAssetsLibrary -LibraryURL sites/branding/Assets -ThumbnailURL https://contoso.sharepoint.com/sites/branding/Assets/contosologo2.jpg
3838
```
3939

40+
### Example 2
41+
42+
This example removes the thumbnail URL that was previously set for the library.
43+
44+
```powershell
45+
Set-SPOOrgAssetsLibrary -LibraryURL sites/branding/Assets -ThumbnailURL ""
46+
```
47+
4048
## PARAMETERS
4149

4250
### -LibraryUrl

0 commit comments

Comments
 (0)