Skip to main content

spo listitem record undeclare

Undeclares list item as a record

Usage

m365 spo listitem record undeclare [options]

Options

-u, --webUrl <webUrl>

The URL of the site where the list is located

-i, --listItemId <listItemId>

ID of the list item to be undeclared as a record.

-l, --listId [listId]

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

-t, --listTitle [listTitle]

The title of the list where the item is located. Specify either listTitle, listId or listUrl

--listUrl [listUrl]

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

-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

Undeclare the list item as a record with ID 1 from list with ID 0cd891ef-afce-4e55-b836-fce03286cccf located in site _https://contoso.sharepoint.com/sites/project-x

spo listitem record undeclare --webUrl https://contoso.sharepoint.com/sites/project-x --listId 0cd891ef-afce-4e55-b836-fce03286cccf --listItemId 1

Undeclare the list item as a record with ID 1 from list with title List 1 located in site https://contoso.sharepoint.com/sites/project-x

m365 spo listitem record undeclare --webUrl https://contoso.sharepoint.com/sites/project-x --listTitle 'List 1' --listItemId 1

Undeclare a list item with a specific id as a record from a list retrieved by server-relative URL located in a specific site

m365 spo listitem record undeclare --webUrl https://contoso.sharepoint.com/sites/project-x --listUrl '/sites/project-x/Lists/Lists 1' --id 1

Response

The command won't return a response on success.

CTRL + M