返回顶部
c

cleanup-properties

Archive or delete unused custom properties across all HubSpot object types (contacts, companies, deals). Identifies Salesforce sync properties, test/temp properties, and obsolete form fields.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
70
下载量
0
收藏
概述
安装方式
版本历史

cleanup-properties

# Cleanup Properties Remove or archive unused custom properties. Property bloat slows down forms, confuses users, and makes data mapping harder. ## Prerequisites - HubSpot API token in `.env` - Python with `hubspot-api-client` installed via `uv` ## Step-by-Step Instructions ### Stage 1: Before — Inventory All Custom Properties Pull properties for each object type: ```python 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. ### Stage 2: Execute — Identify Candidates for Deletion **Safe to delete:** - Properties with zero populated records and not used in any form, workflow, or list - Properties with names containing "test", "temp", "old_", "copy_of" - Properties created by deactivated integrations **Handle with care:** - **Salesforce sync properties** (`hs_salesforce_*` prefix or mapped in sync settings) — do not delete without coordinating with the Salesforce admin - **Form fields** — check if the property is used on any active form before deleting - **Workflow dependencies** — check if any workflow reads or sets this property - **Calculated properties** — check if other calculated properties reference this one **Archive instead of delete** when: - The property has historical data that might be needed for reporting - You are unsure whether anything depends on it ### Stage 3: After — Delete or Archive 1. Archive properties first (HubSpot supports property archiving). 2. Wait 30 days, then delete archived properties that caused no issues. 3. Document all changes in a cleanup log. ### Stage 4: Rollback - Archived properties can be unarchived at any time. - Deleted properties cannot be restored. The property definition and all associated data are permanently lost. - Always archive before deleting to provide a safety window. ## Tips - Run this quarterly as part of the database cleanup routine. - Establish a property naming convention going forward (e.g., `team_purpose_detail`). - Limit who can create custom properties to prevent sprawl. - HubSpot has a property limit per object type — cleanup prevents hitting it.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 cleanup-properties-1776001451 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 cleanup-properties-1776001451 技能

通过命令行安装

skillhub install cleanup-properties-1776001451

下载 Zip 包

⬇ 下载 cleanup-properties v1.0.0

文件大小: 2.03 KB | 发布时间: 2026-4-13 09:46

v1.0.0 最新 2026-4-13 09:46
Initial release of the cleanup-properties skill.

- Identify and inventory custom properties across all HubSpot object types (contacts, companies, deals)
- Flag unused, temporary, test, obsolete, and integration-created properties for safe deletion or archiving
- Special handling for Salesforce sync properties, active form fields, workflow dependencies, and calculated properties
- Step-by-step guidance for archiving, deletion, and rollback procedures
- Promotes ongoing property maintenance and prevention of property bloat

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部