Is this petty or not

OK so have you ever had an ex that you do not like anymore because there were so shitty as a person when you were together and then you blocked him on social media but would you unblock them just to see the message you over and over and over again just to be petty or would you not do it and just keep them blocked