5

I'm having problem removing / deleting two (2) content types. I managed to delete 14 but there are two left behind. Those two are at the same level as the other ones.

I've deleted:

  • all items in lists
  • the entire lists (custom)
  • fields (site columns)
  • reference in lists
  • deleted both recycle bins

Still cannot delete the CT. The site collection should now be a clean site collection.

Get-SPOContentType | ? { $_.Group.StartsWith("Company")  } | Remove-SPOContentType -Force 

Is there a good way in SP Online to see the usage of an Content Type?

1

I believe the equivalent of SPContentTypeUsage is not available in Client. Hence we can't use PowerShell to scan and report the Usage.

I strongly recommend you check the recycle bin to make sure the reference is holding in there

  • Delete from site recycle bin
  • Delete from Site Collection > Site Settings > Site Collection Administration > Recycle Bin
  • Delete from End User Recycle Bin Items
  • Delete from Deleted From End User Recycle Bin
  • What type of privileges must I have to enter the "End User Recycle Bin Items"? I'm site collection admin .. but then I probably have to be tenant admin to view those. But I managed to delete 14 CT's but only two are left behind. – Plexus81 Jul 7 '16 at 14:11
  • By that it means one of the user might have delete a document associated with that content type and it is residing in his/her recycle bin. You can try the other recycle bin's and try deleting the CT again. – Amal Hashim Jul 7 '16 at 14:13
  • All recycle bins that I have access to are empty. It's a clean site collection now. – Plexus81 Jul 7 '16 at 14:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.