-
Notifications
You must be signed in to change notification settings - Fork 328
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds command 'spo list defaultvalue clear'. Closes #6505
- Loading branch information
1 parent
a15ecbf
commit eccaa2f
Showing
5 changed files
with
599 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
import Global from '/docs/cmd/_global.mdx'; | ||
|
||
# spo list defaultvalue clear | ||
|
||
Clears default column values for a specific document library | ||
|
||
## Usage | ||
|
||
```sh | ||
m365 spo list defaultvalue clear [options] | ||
``` | ||
|
||
## Options | ||
|
||
```md definition-list | ||
`-u, --webUrl <webUrl>` | ||
: URL of the site where the list is located. | ||
|
||
`-i, --listId [listId]` | ||
: ID of the list. Specify either `listTitle`, `listId`, or `listUrl`. | ||
|
||
`-t, --listTitle [listTitle]` | ||
: Title of the list. Specify either `listTitle`, `listId`, or `listUrl`. | ||
|
||
`--listUrl [listUrl]` | ||
: Server- or site-relative URL of the list. Specify either `listTitle`, `listId`, or `listUrl`. | ||
|
||
`--fieldName [fieldName]` | ||
: Internal name of the field to clear over the entire list. Specify either `fieldName` or `folderUrl`, but not both. | ||
|
||
`--folderUrl [folderUrl]` | ||
: Clear all fields of a specific folder. Specify either `fieldName` or `folderUrl`, but not both. | ||
``` | ||
|
||
<Global /> | ||
|
||
## Examples | ||
|
||
Remove all default column values from a library | ||
|
||
```sh | ||
m365 spo list defaultvalue clear --webUrl https://contoso.sharepoint.com/sites/Marketing --listTitle Logos | ||
``` | ||
|
||
Clear a field from all folders of a library | ||
|
||
```sh | ||
m365 spo list defaultvalue clear --webUrl https://contoso.sharepoint.com/sites/Marketing --listTitle Logos --field Company | ||
``` | ||
|
||
Clear all fields from a specific folder in a library | ||
|
||
```sh | ||
m365 spo list defaultvalue clear --webUrl https://contoso.sharepoint.com/sites/Marketing --listTitle Logos --folderUrl "/sites/Marketing/Logos/Contoso" | ||
``` | ||
|
||
## Response | ||
|
||
The command won't return a response on success. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.