I’ve done the exact opposite in my career. I made myself irreplaceable by making myself replaceable. Not many people willingly share their knowledge and their problem solving process.There are 2 rules for success.
1. Don't tell everything you know.
2.
Now, trade secrets, things that aren’t mine to tell, etc, stays secret.