Is something like Signal disappearing messages illegal?
I remember when Mark Cuban tried to make his CyberDust app.
Not illegal per se, but if you're under a preservation order and specifically instruct someone to use disappearing messages to evade it, it can get a bit iffy.
google made internal chat messages disappeared after N days, which was disclosed in one of the trials, but I do not recollect any following punishment.