delete-no-email-contacts
Installation
SKILL.md
Delete Contacts With No Email Address
Purpose
Contacts without an email address serve no functional purpose in a HubSpot Marketing Hub instance. They cannot receive marketing emails, sales sequences, or transactional messages. They inflate the billed contact count. This skill identifies and deletes them via the API.
Prerequisites
- A HubSpot private app access token with
crm.objects.contacts.readandcrm.objects.contacts.writescopes - Python 3.10+ with
uvfor package management - A
.envfile containingHUBSPOT_ACCESS_TOKEN
Scripts
| Stage | Script | Run with |
|---|---|---|
| Before | scripts/before.py |
uv run skills/delete-no-email-contacts/scripts/before.py |
| Execute | scripts/execute.py |
uv run skills/delete-no-email-contacts/scripts/execute.py |
| After | scripts/after.py |
uv run skills/delete-no-email-contacts/scripts/after.py |