Do not automatically delete notes in yaml file

Hello
Is there any possibility that when restarting the server or writing in lovelace, it does not automatically delete notes in the yaml file?

For example
#notes