Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

delete-no-email-contacts

Skill by TomGranot

Deletes contacts with no email address from a HubSpot CRM instance. It is built for HubSpot Marketing Hub users who want to remove contacts that cannot receive communication and inflate billing.

  • Score 58
  • 81 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install delete-no-email-contacts

Built from the published package, never by AI.

git clone --depth 1 https://github.com/TomGranot/hubspot-admin-skills /tmp/hubspot-admin-skills && mkdir -p ~/.claude/skills && cp -r /tmp/hubspot-admin-skills/skills/delete-no-email-contacts ~/.claude/skills/delete-no-email-contacts

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install delete-no-email-contacts in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

The delete-no-email-contacts skill removes contacts that have no email address from a HubSpot CRM instance. The source says these contacts cannot receive marketing emails, sales sequences or transactional messages, and that they inflate the billed contact count. It follows four stages: plan, before, execute and after. The before stage counts matching contacts and saves a baseline, and the execute stage collects their IDs, writes an audit CSV and batch-archives them in groups of 100.

The execute step has a hard-coded abort threshold of 500 contacts and asks for typed confirmation. Deleted contacts can be recovered for 90 days from HubSpot Settings > Data Management > Deleted Objects. The skill is aimed at HubSpot administrators who need to clean up their contact database. It requires a HubSpot service key with contact read and write scopes, plus Python 3.10 or later and uv.

Written from the project's SKILL.md and checked against it.

What it can do

  • Count contacts with no emailSearches the CRM for contacts without an email property and reports the total.
  • Export audit CSVSaves each contact's ID, name and create date to a CSV before any deletion.
  • Batch archive contactsArchives contacts in groups of up to 100 IDs per API call.
  • Abort on large countsExits without deleting anything if more than 500 contacts are found.
  • Verify removalRe-runs the search after deletion to confirm no matching contacts remain.

What you need

  • HubSpot service key with crm.objects.contacts.read and crm.objects.contacts.write scopes
  • Python 3.10 or later
  • uv for package management
  • .env file containing HUBSPOT_ACCESS_TOKEN

Try asking

  • Count HubSpot contacts that have no email address.
  • Export a CSV audit of contacts with no email before deleting them.
  • Archive HubSpot contacts with no email, then confirm none remain.

Good to know

  • Abort threshold is hard-coded at 500 contacts by default.
  • Deleted contacts are recoverable for 90 days only.
  • The Search API returns at most 10,000 results per query.
  • The batch archive API is more restrictive, so the script waits 0.5 seconds between calls.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/delete-no-email-contacts/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to delete-no-email-contacts

All alternatives →

Compare with lead-triage, lead-finder or outreach-composer

delete-no-email-contacts: common questions

Can deleted contacts be restored?

Yes, the source says deleted contacts can be restored for 90 days from HubSpot Settings > Data Management > Deleted Objects.

Which HubSpot token scopes does it need?

It needs crm.objects.contacts.read and crm.objects.contacts.write. The source says an existing legacy private app token also works.

What if new contacts without email keep appearing?

The source warns that an integration, form or import may be creating them, so the root cause should be investigated after deletion.

How do I install delete-no-email-contacts?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is delete-no-email-contacts free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is delete-no-email-contacts safe to use?

It scores 58 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to delete-no-email-contacts?

Similar skills: lead-triage, lead-finder, outreach-composer, cold-email.

delete-no-email-contacts Install

Add to stack

Loading.