(If you don't have a hardware wallet, you can think about it)
I won't advise anyone to try this because the flaw are just too great. This is why an average cryptographer or even single individual can't really built a secured cryptography because there are often flaws that they might not see. SquirrelJulietGarden has spoken earlier how this self destruct mechanism can be really bad, the link shared will give a more secured method for it.