spo list defaultvalue clear
Clears default column values for a specific document library
Usage
m365 spo list defaultvalue clear [options]
Options
-u, --webUrl <webUrl>
URL of the site where the list is located.
-i, --listId [listId]
ID of the list. Specify either
listTitle
,listId
, orlistUrl
.-t, --listTitle [listTitle]
Title of the list. Specify either
listTitle
,listId
, orlistUrl
.--listUrl [listUrl]
Server- or site-relative URL of the list. Specify either
listTitle
,listId
, orlistUrl
.--fieldName [fieldName]
Internal name of the field to clear over the entire list. Specify either
fieldName
orfolderUrl
, but not both.--folderUrl [folderUrl]
Clear all fields of a specific folder by specifying a server- or site-relative URL. Specify either
fieldName
orfolderUrl
, but not both.-f, --force
Don't prompt for confirmation.
-h, --help [help]
Output usage information. Optionally, specify which section of command's help you want to see. Allowed values are
options
,examples
,remarks
,response
,full
. Default isoptions
.--query [query]
JMESPath query string. See http://jmespath.org/ for more information and examples.
-o, --output [output]
Output type.
json
,text
,csv
,md
,none
. Defaultjson
.--verbose
Runs command with verbose logging.
--debug
Runs command with debug logging.
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 in a library
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.