Search
OneNoteGem
  • Home
  • Addins
    • Windows Office Addins >
      • Gem for OneNote
      • OneNote Search Bar
      • OneNote Gem - Favorites
      • OneNote Batch
      • Pons for MindManager and OneNote
      • Mind Map for OneNote
      • Pons for Visio and OneNote
      • Row to OneNote
      • Auto OneNote
      • Favorite to OneNote
      • Bridge for EndNote and OneNote
      • Anchor to OneNote
      • Anchor to OneNote for PDF
      • Bring to OneNote
      • Gem Table for OneNote
    • Windows UWP Addins >
      • Gem Menu for OneNote UWP
      • CiteBoard for OneNote
      • OneReader
      • OneMind for Windows OneNote
      • OneNote Reminder Cloud (UWP)
      • OneNote Batch Cloud (UWP)
    • Mac Addins >
      • Gem Menu for Mac OneNote
      • CiteBoard for OneNote
      • Bring to Mac OneNote
      • OneMind for Mac OneNote
      • OneNote Reminder for Mac
      • OneNote Batch for Mac
      • Fix One for Mac - Fix OneNote Login, Sync Tools
    • Android Addins >
      • CiteBoard for OneNote
      • Fix One for Android - Fix OneNote Login, Sync Tools
    • Cross-Platform Addins >
      • OneNote Reminder
      • OneMind for OneNote
      • CiteBoard for OneNote
      • Fix One - Fix OneNote Login, Sync Tools
    • Markdown Addins >
      • Gem for OneNote
      • One Markdown
    • Mind Map Addins >
      • OneNote Gem - Favorites
      • Pons for MindManager and OneNote
      • Mind Map for OneNote
      • Pons for Visio and OneNote
      • OneMind for OneNote
    • Other Addins >
      • One Markdown
      • Clip to OneNote
      • WordNote
      • OneShare
      • Fix One for Windows - Fix OneNote Login, Sync Tools
  • Buy
  • Documents
  • FAQs
  • Templates
  • Support
  • Release
  • WordNote
Gem Table for OneNote
 
 
The table of merged cells for OneNote

Using Command Line to Clean an OneNote Notebook or Section Group

2019-11-22 20:10
 
OneNote Batch v13 offers a command line to clean an OneNote Notebook or Section Group. It will delete all subsidiaries, includes all sub section groups and sub sections.
You can use this command line to make a task to clean a section group.

For example:
There is a "Month" section group in "My Notebook" notebook, and we plan to regularly to empty it ( Delete all its sub section groups and sub sections ).
Picture
 
Get Command Line

In left section tree in OneNote Batch, right click on "Month" section group, on the pop up menu, click "Copy Delete Subsidiaries Command Line to This" item, it will copy the command line to clipboard, if it success, it will display "Create "Month" delete subsidiaries command line and copy to clipboard." on the status bar.

Command Line Format:
"C:Program FilesOneNoteGemNoteBatchNoteBatchProcessor.exe" /RemoveSubs {Section Group ID}
Picture
 
Create a Batch File

Run Windows notepad.exe, press "Ctrl + V" to paste the command line, and save the file ( file name is ClrONMonth.bat ).
Picture
 
Run the Batch File to Empty the Section Group

Double click on "ClrONMonth.bat" to run the batch file, it will start to empty "Month" Section Group.

We can see the sections have all been removed from "Month" Section group when we return to OneNote.

With "ClrONMonth.bat" batch file, it is easy to empty the "Month" Section Group from now.
Picture
 
 
Download OneNote Batch

Related Documents

Command Line
Tag System
MindMap Add-Ins Comparison
Search Add-Ins Comparison
One Markdown Syntax
Table Formula
Gantt

Gem Menu Templates
Repair OneNote
OneNote Download
English website Chinese website
Mobile Site
Copyright © 2011-2025 Digital GemSoft. OneNoteGem.com All Rights Reserved.