Secure function deletion