sing System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.SharePoint.Client;
namespace DeleteContentType
{
class Program
{
static void Main(string[] args)
{
string siteURL = "http://siteURL.com/";
ClientContext clientContext = new ClientContext(siteURL);
List list = clientContext.Web.Lists.GetByTitle("TestList");
ContentType ct = list.ContentTypes.GetById("JVFGHJHVFDGHJKLLLNGSDDWKPUFSEGHJPUGFFSDFGHJIIHDSSFCDSD"); //Give id of content type which we want to delete
ct.DeleteObject();
clientContext.ExecuteQuery();
}
}
}This code is for to Delete SharePoint Specific List Content Type using CSOM C#.
