If you switch your insurance provider when your policy ends instead of renewing it, you can remove a self-fitted box yourself and send it back or recycle it.
If you have a professionally fitted black box, your old provider will simply deactivate it so it no longer records your driving data. They may send someone out to remove it. If they don’t, you could choose to have it removed for a fee.