There is a 'Close and delete account' option in the settings on my LinkedIn account page. I guess you used that. If you continue to receive messages from them after that I would suggest going down the route
Tocsin suggested. They no longer have any reason to contact you, so they should cease and desist.