We have deployed ghost inspector to automatically create leads to check for website downtime. The leads are created with a random email address that begins with "[email protected]".

How can I create some sort of a trigger to automatically delete those records because they are increasing our leads counts and conversion rates.

I have read something about apex triggers etc. Can you guide to the right direction. We use Salesforce classic if that matters.


  • A trigger may or may not help you, depending on how Ghost Inspector checks for success. To see if the trigger does work, have you tried implementing it? Where are you stuck? You can take a look at Triggers trailhead for a tutorial
    – identigral
    Oct 12, 2020 at 19:00
  • As with identigral, you could also use a lightning flow to delete (sync or scheduled)
    – cropredy
    Oct 13, 2020 at 1:20
  • Lets take Ghost Inspector out of equation for a moment. Whenever a New lead is generated, how can I delete any new lead which has "ghostinspector" (eg: "[email protected]") in email address Oct 13, 2020 at 4:41
  • 1
    It's easier to start building Flows compared to Apex triggers. Check the Trailhead resources like this one for tutorials. Oct 13, 2020 at 15:16


You must log in to answer this question.

Browse other questions tagged .