Skip to main content

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, 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 by specifying a server- or site-relative URL. Specify either fieldName or folderUrl, 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 is options.

--query [query]

JMESPath query string. See http://jmespath.org/ for more information and examples.

-o, --output [output]

Output type. json, text, csv, md, none. Default json.

--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.

CTRL + M