https://docs.symbol.dev/guides/network/running-a-secure-symbol-node.html#preset
The documentation about a secure node suggests putting you main private key into a custom yml file to start the node.
It would be more secure to only put the public key into that file. Then it would not be neccesary to delete the custom yml file because it only contains the public key.