It depends on the type of policy you have. If you’re a single policyholder and want to change the beneficiary from your ex to someone else, this is usually quite straightforward. It can be more complicated if the life insurance policy is written in trust.
If you have a joint policy, see if it can be split into single cover. The other option is to cancel the policy and find new cover.
Find out more about life insurance and divorce.