Install
openclaw skills install cleanup-propertiesArchive or delete unused custom properties across all HubSpot object types (contacts, companies, deals). Identifies Salesforce sync properties, test/temp properties, and obsolete form fields.
openclaw skills install cleanup-propertiesRemove or archive unused custom properties. Property bloat slows down forms, confuses users, and makes data mapping harder.
.envhubspot-api-client installed via uvPull properties for each object type:
from hubspot import HubSpot
api_client = HubSpot(access_token=os.getenv("HUBSPOT_API_TOKEN"))
for obj_type in ["contacts", "companies", "deals"]:
props = api_client.crm.properties.core_api.get_all(
object_type=obj_type
)
custom_props = [p for p in props.results if not p.hubspot_defined]
For each custom property, record: name, label, object type, type, group, number of records with a value (requires search queries), whether it is used in any form/workflow/list.
Safe to delete:
Handle with care:
hs_salesforce_* prefix or mapped in sync settings) — do not delete without coordinating with the Salesforce adminArchive instead of delete when:
team_purpose_detail).