Skip to content

Commit 24113bb

Browse files
000-861: ct remove
1 parent 040699d commit 24113bb

File tree

1 file changed

+7
-20
lines changed

1 file changed

+7
-20
lines changed

articles/en/SharePointOnline/ctremove.md

+7-20
Original file line numberDiff line numberDiff line change
@@ -21,32 +21,19 @@ Click delete this content type and receive the following error message:
2121
<img src="/articles/img/ctremove.png" width="200">
2222

2323

24-
Solution
24+
# Solution
2525

26-
We did the Thinker pose, shouted loudly %#$%#% (still no improvement) and resorted to something that almost never fails - PowerShell.
2726

28-
To save you from hurting your fists, we are sharing the solution below:
27+
The error message means that somewhere out there there are still items using that content type you are trying to delete. There are several ways you can fix it:
2928

30-
We have already PowerShell ISE and SharePoint Online SDK installed. So in the ISE Window let's go right away and add the paths to the SDK:
29+
* User Interface (Browser)
30+
* PNP Powershell
31+
* CSOM + Powershell
32+
* REST API
3133

32-
Add-Type -Path "c:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.dll"
33-
34-
Add-Type -Path "c:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.Runtime.dll"
35-
36-
Enter the data of the site:
37-
38-
$Username="[email protected]"
39-
40-
$AdminPassword=Read-Host -Prompt "Password" -AsSecureString
41-
42-
$AdminUrl="https://trial.sharepoint.com/sites/firstsite"
43-
44-
and the content type id.
4534

46-
How to find the content type id?
47-
1. Navigate to Site>Site settings > Content types
4835

49-
or
36+
## User Interface (Browser)
5037

5138
Enter the URL of the site where you want to remove the content type. At the end of the URL add /_layouts/15/mngctype.aspx
5239

0 commit comments

Comments
 (0)