Create a note at the the root whose name is “Trash”. (Or call it whatever you want, it makes no difference.)
Create an agent whose query is:
$Name.contains("Title of notes I want to delete"); <-- obviously use the correct name here
and whose action is
When the notes have been moved by the action, inspect the contents of “Trash”. When you’re satisfied, delete the “Trash”.
HOWEVER – you will possibly capture something in “Trash” you don’t want to be there, so you’ll need to put it back where it belongs. Actions that change containers run the risk of destroying your work and the structure of your document. With NO possibility of undoing the action. Be very careful and do not use what I recommend unless you are certain you understand the consequences. Test this on a duplicate of your main file and make sure you have multiple backup copies.