Skip to content

spo list contenttype remove

Removes content type from list

Usage

spo list contenttype remove [options]

Options

Option Description
--help output usage information
-u, --webUrl <webUrl> URL of the site where the list is located
-l, --listId [listId] ID of the list from which to remove the content type, specify listId or listTitle but not both
-t, --listTitle [listTitle] Title of the list from which to remove the content type, specify listId or listTitle but not both
-c, --contentTypeId <contentTypeId> ID of the content type to remove from the list
--confirm Don't prompt for confirming removing the content type from the list
-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 SharePoint, using the spo login command.

Remarks

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

Examples

Remove content type with ID 0x010109010053EE7AEB1FC54A41B4D9F66ADBDC312A from the list with ID 0cd891ef-afce-4e55-b836-fce03286cccf located in site https://contoso.sharepoint.com/sites/project-x

spo list contenttype remove --webUrl https://contoso.sharepoint.com/sites/project-x --listId 0cd891ef-afce-4e55-b836-fce03286cccf --contentTypeId 0x010109010053EE7AEB1FC54A41B4D9F66ADBDC312A

Remove content type with ID 0x010109010053EE7AEB1FC54A41B4D9F66ADBDC312A from the list with title Documents located in site https://contoso.sharepoint.com/sites/project-x

spo list contenttype remove --webUrl https://contoso.sharepoint.com/sites/project-x --listTitle Documents --contentTypeId 0x010109010053EE7AEB1FC54A41B4D9F66ADBDC312A