clear item from main hand

I'm trying to make a recipe paper, that gives a recipe then gets rid of the item once it's done. Here's my try at the command to clear: execute as @a[nbt={SelectedItem:{id:"candlelight:note_paper_written"}}] run clear @s candlelight:note_paper_written{recipe:1b} 1 it does clear only 1 item, but issue comes in when there's an item before it
Continue to help post