private static void DeleteAllSections(string dataDir)
{
// ExStart:DeleteAllSections
Document doc = new Document(dataDir);
doc.Sections.Clear();
// ExEnd:DeleteAllSections
Console.WriteLine("\nAll sections deleted successfully form the document.");
}
}