Skip to content

spo contenttype field remove

Removes a column from a site- or list content type

Usage

spo contenttype field remove [options]

Options

Option Description
--help output usage information
-u, --webUrl <webUrl> Absolute URL of the site where the content type is located
-l, --listTitle [listTitle] Title of the list where the content type is located (if it is a list content type)
-i, --contentTypeId <contentTypeId> The ID of the content type to remove the column from
-f, --fieldLinkId <fieldLinkId> The ID of the column to remove
-c, --updateChildContentTypes Update child content types
--confirm Don't prompt for confirming removal of a column from content type
-o, --output [output] Output type. json|text. Default text
--verbose Runs command with verbose logging
--debug Runs command with debug logging

Important

Before using this command, log in to a SharePoint Online tenant admin site, using the spo login command.

Remarks

To remove a column from a content type, you have to first log in to a SharePoint site using the spo login command, eg. spo login https://contoso.sharepoint.com.

Examples

Remove column with ID 2c1ba4c4-cd9b-4417-832f-92a34bc34b2a from content type with ID 0x0100CA0FA0F5DAEF784494B9C6020C3020A6 from web with URL https://contoso.sharepoint.com

spo contenttype field remove  --contentTypeId "0x0100CA0FA0F5DAEF784494B9C6020C3020A6" --fieldLinkId "880d2f46-fccb-43ca-9def-f88e722cef80" --webUrl https://contoso.sharepoint.com --confirm

Remove column with ID 2c1ba4c4-cd9b-4417-832f-92a34bc34b2a from content type with ID 0x0100CA0FA0F5DAEF784494B9C6020C3020A6 from web with URL https://contoso.sharepoint.com updating child content types

spo contenttype field remove  --contentTypeId "0x0100CA0FA0F5DAEF784494B9C6020C3020A6" --fieldLinkId "880d2f46-fccb-43ca-9def-f88e722cef80" --webUrl https://contoso.sharepoint.com --updateChildContentTypes

Remove fieldLink with ID 2c1ba4c4-cd9b-4417-832f-92a34bc34b2a from list content type with ID 0x0100CA0FA0F5DAEF784494B9C6020C3020A6 from web with URL https://contoso.sharepoint.com

spo contenttype field remove  --contentTypeId "0x0100CA0FA0F5DAEF784494B9C6020C3020A60062F089A38C867747942DB2C3FC50FF6A" --fieldLinkId "880d2f46-fccb-43ca-9def-f88e722cef80" --webUrl https://contoso.sharepoint.com --listTitle "Documents"