My understanding is X followed Brazilian law by deleting the 7 offending posts, but the judge is now acting outside of the law and is demanding things of which there is no legal basis. And apparently this judge has a history of doing things like this in unrelated cases.