Four years ago, I got annoyed with repeated emails from Google recruiters and asked them to place "DO NOT CONTACT" on my file. This worked for a few months; then I started being contacted again by recruiters who "just wanted to check in case [I] had changed [my] mind".
Asking for this to be changed to "DO NOT CONTACT ON PAIN OF DEATH" seems to have worked, though.