Usage
m365 spo list defaultvalue clear [options]
Description
Clears default column values for a specific document library
Options
| Option |
Description |
-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. |
-f, --force |
Don't prompt for confirmation. |
Examples
Remove all default column values from a library
m365 spo list defaultvalue clear --webUrl https://contoso.sharepoint.com/sites/Marketing --listTitle Logos
Clear a field from all folders of a library
m365 spo list defaultvalue clear --webUrl https://contoso.sharepoint.com/sites/Marketing --listTitle Logos --field Company
Clear all fields from a specific folder
m365 spo list defaultvalue clear --webUrl https://contoso.sharepoint.com/sites/Marketing --listTitle Logos --folderUrl "/sites/Marketing/Logos/Contoso"
Default properties
No response
Additional Info
No response
Usage
m365 spo list defaultvalue clear [options]
Description
Clears default column values for a specific document library
Options
-u, --webUrl <webUrl>-i, --listId [listId]listTitle,listId, orlistUrl.-t, --listTitle [listTitle]listTitle,listId, orlistUrl.--listUrl [listUrl]listTitle,listId, orlistUrl.--fieldName [fieldName]fieldNameorfolderUrl, but not both.--folderUrl [folderUrl]fieldNameorfolderUrl, but not both.-f, --forceExamples
Remove all default column values from a library
Clear a field from all folders of a library
Clear all fields from a specific folder
m365 spo list defaultvalue clear --webUrl https://contoso.sharepoint.com/sites/Marketing --listTitle Logos --folderUrl "/sites/Marketing/Logos/Contoso"Default properties
No response
Additional Info
No response