Skip to main content

spo list view field remove

Removes the specified field from list view

Usage

m365 spo list view field remove [options]

Options

-u, --webUrl <webUrl>

URL of the site where the list is located

--listId [listId]

ID of the list where the view is located. Specify either listId, listTitle, or listUrl.

--listTitle [listTitle]

Title of the list where the view is located. Specify either listId, listTitle, or listUrl.

--listUrl [listUrl]

Server- or site-relative URL of the list. Specify either listId , listTitle or listUrl.

--viewId [viewId]

ID of the view to update. Specify viewTitle or viewId but not both

--viewTitle [viewTitle]

Title of the view to update. Specify viewTitle or viewId but not both

--id [id]

ID of the field to remove. Specify id or title but not both

--title [title]

The case-sensitive internal name or display name of the field to remove. Specify id or title but not both

-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 field with ID 330f29c5-5c4c-465f-9f4b-7903020ae1ce from view with ID 3d760127-982c-405e-9c93-e1f76e1a1110 from the list with ID 1f187321-f086-4d3d-8523-517e94cc9df9 located in site https://contoso.sharepoint.com/sites/project-x

m365 spo list view field remove --webUrl https://contoso.sharepoint.com/sites/project-x --listId 1f187321-f086-4d3d-8523-517e94cc9df9 --viewId 3d760127-982c-405e-9c93-e1f76e1a1110 --id 330f29c5-5c4c-465f-9f4b-7903020ae1ce

Remove field with title Custom field from view with title Custom view from the list with title Documents located in site https://contoso.sharepoint.com/sites/project-x

m365 spo list view field remove --webUrl https://contoso.sharepoint.com/sites/project-x --title 'Custom field' --listTitle Documents --viewTitle 'Custom view'

Remove field with title Custom field from view with title Custom view from the list with url /sites/project-x/lists/Events located in site https://contoso.sharepoint.com/sites/project-x

m365 spo list view field remove --webUrl https://contoso.sharepoint.com/sites/project-x --fieldTitle 'Custom field' --listUrl '/sites/project-x/lists/Events' --viewTitle 'Custom view'

Response

The command won't return a response on success.

CTRL + M