spo contenttype field remove
Removes a column from a site or list content type
Usage
m365 spo contenttype field remove [options]
Options
-u, --webUrl <webUrl>
Absolute URL of the site where the content type is located.
-l, --listTitle [listTitle]
Title of the list (if it is a list content type). Specify either
listTitle
,listId
orlistUrl
.--listId [listId]
ID of the list (if it is a list content type). Specify either
listTitle
,listId
orlistUrl
.--listUrl [listUrl]
Server- or site-relative URL of the list (if it is a list content type). Specify either
listTitle
,listId
orlistUrl
.--contentTypeId <contentTypeId>
The ID of the content type to remove the column from.
-i, --id <id>
The ID of the column to remove.
-c, --updateChildContentTypes
Update child content types.
-f, --force
Don't prompt for confirming removal of a column from content type.
-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 column with a specific ID from a content type with a specific ID from a specific site.
m365 spo contenttype field remove --contentTypeId "0x0100CA0FA0F5DAEF784494B9C6020C3020A6" --id "880d2f46-fccb-43ca-9def-f88e722cef80" --webUrl https://contoso.sharepoint.com --force
Remove column with a specific ID from a content type with a specific ID from a specific site and updating the child content types.
m365 spo contenttype field remove --contentTypeId "0x0100CA0FA0F5DAEF784494B9C6020C3020A6" --id "880d2f46-fccb-43ca-9def-f88e722cef80" --webUrl https://contoso.sharepoint.com --updateChildContentTypes
Remove fieldLink with a specific ID from a list (obtained by Title) content type with a specific ID on a specific site.
m365 spo contenttype field remove --contentTypeId "0x0100CA0FA0F5DAEF784494B9C6020C3020A60062F089A38C867747942DB2C3FC50FF6A" --id "880d2f46-fccb-43ca-9def-f88e722cef80" --webUrl https://contoso.sharepoint.com --listTitle "Documents"
Remove fieldLink with a specific ID from a list (obtained by ID) content type with a specific ID on a specific site.
m365 spo contenttype field remove --contentTypeId "0x0100CA0FA0F5DAEF784494B9C6020C3020A60062F089A38C867747942DB2C3FC50FF6A" --id "880d2f46-fccb-43ca-9def-f88e722cef80" --webUrl https://contoso.sharepoint.com --listId "8c7a0fcd-9d64-4634-85ea-ce2b37b2ec0c"
Remove fieldLink with a specific ID from a list (obtained by URL) content type with a specific ID on a specific site.
m365 spo contenttype field remove --contentTypeId "0x0100CA0FA0F5DAEF784494B9C6020C3020A60062F089A38C867747942DB2C3FC50FF6A" --id "880d2f46-fccb-43ca-9def-f88e722cef80" --webUrl https://contoso.sharepoint.com --listUrl "/shared documents"
Response
The command won't return a response on success.