Skip to content
All articles

Removing Your Email From a Site Takes More Than Deleting the Link

4 min read

I took my personal email address off this site. It looked like a one-line job: delete the address from the profile data, and the contact button disappears. In practice the address was in more places than the visible link, and two of those places needed something put in their place rather than just deleted.

Where it actually was

Searching the source for the address found the obvious ones. Searching the built site found the rest — which matters, because the build output is what scrapers read.

  • The profile data and the social links list. The visible part.
  • The type definition. Removing the field from the data broke the type, which is the good outcome: the compiler then listed every component still reading it.
  • Structured data. The home page's JSON-LD carried an "email": "mailto:…" field. It is invisible on the page and exactly what crawlers parse.
  • The contact form's error state. When the form failed to send, it offered the address as a fallback. You only see this when something goes wrong, so nobody looks at it.
  • Server-side copy. The API's error messages said "email me directly", which would have pointed people at an address that no longer appeared anywhere.
  • Downloadable files. A CV or a PDF is a separate artefact with its own copy. A search of the HTML will not find it, and changing the site's code does not change it — it needs re-exporting from wherever it was made.

Two holes that needed filling

Deleting the address cleanly was not enough in two places, because the address was doing a job.

The primary contact button. On a phone, a single tap on a button is much easier than filling in a form. With the address gone, that one-tap route needed a replacement, so the button now goes to my LinkedIn profile — somewhere a stranger is likely to already be signed in, one tap from a message.

The form's failure message. The moment a form fails is the moment someone who has just written out a message most needs another way through. An error with no next step is worse than no form. It now links the same LinkedIn profile, and falls back to "try again" if no alternative is configured.

A small follow-on: LinkedIn was also in the "elsewhere" list below the button, so it appeared twice on one screen. The list now skips whichever platform the button uses.

What I deliberately left

The contact form still delivers to that address. It has to arrive somewhere. That copy lives in server-side code in a private repository, is never sent to a browser, and removing it would have silently broken delivery unless an environment variable was set first. Moving it into configuration is worth doing; deleting it without that would have traded a privacy improvement for a contact form that drops every message.

How to check you got them all

Search three places, not one:

  • The source, for the address and for mailto:.
  • The built output, every page — that is what is actually published. Look inside JSON-LD and meta tags, not just visible text.
  • Every file the site links to for download. Each is its own copy.

Then trigger the error states on purpose and read them. They are the part of a site nobody reviews, and they are where an old address, an old phone number or an old promise most often survives.