If in any case, you wish to retain the content from the notebook before deleting them on OneDrive, you can move the contents of the old notebook section by section to a computer by creating a new notebook on your system and then delete the old notebook from OneDrive.
Open OneNote and go to Files.
Click on New and choose Computer.
Type the name you want to give for the new notebook and click on Create Notebook.