How to permanently remove attached files from OneNote?

You can optimize the OneNote database file which should reduce it's file size:

  1. Open the File tab
  2. Open the Options dialog
  3. Select the Save & Backup entry
  4. Execute Optimize all Files now