I presume that depends on who removes these posts. If the posts are removed by group owners or moderators who are not affiliated with the social media service itself, I think that should be totally fine according to that law. It's the social media service itself that's not allowed to do that.