如何从SharePoint Online中的订阅者网站集中删除孤立的内容类型 [英] How to delete orphaned Content Types from subscriber site collections in SharePoint Online
问题描述
您好,各位技术负责人,我需要您的专家帮助.
Hi Fellow tech heads, I'm in need of your expert help.
我犯了一个可怕的错误,那就是从CT Hub删除一些内容类型而没有先从订阅者站点上取消发布它们,现在它们被永久地孤立了,无法删除,但是它并没有到此结束,这也意味着每个新网站集 创建的文件将继承这些孤立的CTS.我研究过的唯一解决方案是,在CT Hub中使用CSOM或Powershell使用与删除ID相同的ID来重新创建那些删除的CT.然后发布>然后取消发布它们,然后将其删除.
I made the dreaded error of deleting a few content types from the CT Hub without first unpublishing them from the subscriber sites and now they are orphaned forever and cannot be deleted, but it doesn't end there, it also means that every new site collection that is created inherits those orphaned CTS. The only solution I researched about it to re-create those deleted CTs using CSOM or Powershell in the CT Hub with the same ID of the deleted ones > then publish > then unpublish them and then delete them.
唯一的事情是我不知道如何使用powershell或CSOM命令重新创建具有与已删除ID相同ID的CT.请帮忙.
Only thing is I don't know the powershell or CSOM commands to re-create a CT with the same ID as the deleted ones. Please help.
在此先感谢.
SKoolZ
推荐答案
SKooLZ,
Hi SKooLZ,
我不能保证您使用与删除ID相同的ID重新创建那些已删除的CT,可以解决您的问题,但是这里有一些文章供您参考.
I cannot promise that you re-create those deleted CTs with the same ID of the delete ones can solve your issue, but here are some articles for your reference.
使用CSOM创建SharePoint内容类型:
Create SharePoint content types by using CSOM:
https://msdn.microsoft.com/en -us/pnp_articles/通过使用csom创建共享点内容类型
使用PnP PowerShell在SharePoint上创建,检索或删除网站内容类型:
Create, Retrieve Or Delete Site Content Type On SharePoint Using PnP PowerShell:
最好的问候
Lisa Chen
Lisa Chen
这篇关于如何从SharePoint Online中的订阅者网站集中删除孤立的内容类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!