Method to Disable SPO features Using CSOM

Below is the Link for all the GUID’s of all the features in Sharepoint.

The following links has the details of GUID’s and description in brief of each feature at site level in a SP site.

 

 

 

https://blogs.msdn.microsoft.com/razi/2013/10/28/listing-all-sharepoint-server-2013-features-including-name-title-scope-id-and-description/

Snippet:

public static void RemoveMinimalDownload(ClientContext clientContext, Web web)
{

//Pass the Corresponding GUID here
Guid MDSfeature = new Guid(“87294C72-F260-42f3-A41B-981A2FFCE37A”);
FeatureCollection features = web.Features;
clientContext.Load(features);
clientContext.ExecuteQuery();
features.Remove(MDSfeature, true);
clientContext.ExecuteQuery();
}

Call this method in the main function it will disable the feature once the program runs.

Similarly, GUID for Mobile Browser View is d95c97f3-e528-4da2-ae9f-32b3535fbb59 and for the others please follow the above given Link.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s