返回顶部
c

cleanup-forms

Audit and remove unused, test, or deprecated forms from HubSpot. Identifies forms with zero submissions, forms not embedded on any page, and test forms left over from development.

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

cleanup-forms

# Cleanup Forms Audit HubSpot forms to remove unused and test forms. Stale forms clutter the forms dashboard and can cause confusion when building workflows or reports. ## Prerequisites - HubSpot API token in `.env` - Python with `hubspot-api-client` installed via `uv` - Note: The Forms API may return 403 on some plan tiers. If so, perform the audit manually in the HubSpot UI under Marketing > Forms. ## Step-by-Step Instructions ### Stage 1: Before — Inventory All Forms Pull all forms via the API: ```python from hubspot import HubSpot api_client = HubSpot(access_token=os.getenv("HUBSPOT_API_TOKEN")) forms = api_client.marketing.forms.forms_api.get_page(limit=100) ``` For each form, record: form ID, name, type, submission count, created date, last submission date. ### Stage 2: Execute — Identify Candidates for Deletion Flag forms matching any of these criteria: 1. **Zero submissions** and created more than 30 days ago 2. **No recent submissions** (last submission 6+ months ago) and not embedded on an active page 3. **Test forms** (names containing "test", "temp", "draft", "copy of") 4. **Deprecated forms** replaced by newer versions Before deleting, check: - Is the form referenced in any workflow enrollment trigger? - Is the form embedded on any live landing page or website page? - Is the form used in any pop-up or slide-in CTA? ### Stage 3: After — Delete and Document 1. Delete confirmed unused forms via the API or UI. 2. Document what was deleted in a cleanup log. 3. If a form with submissions is deleted, the submission data is retained on the contact records — but the form definition is gone. ### Stage 4: Rollback - Deleted forms cannot be restored in HubSpot. - Before deleting a form with any submissions, export the form definition (field names, settings) so it can be recreated. - Contact records retain their form submission history regardless of form deletion. ## Tips - Establish a naming convention: `[TEAM] - Purpose - Version` (e.g., `[Marketing] - Webinar Registration - v2`). - Prefix deprecated forms with "[DEPRECATED]" instead of deleting immediately — delete after one quarter of no usage.

标签

skill ai

通过对话安装

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

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 cleanup-forms-1776002052 技能

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

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

通过命令行安装

skillhub install cleanup-forms-1776002052

下载 Zip 包

⬇ 下载 cleanup-forms v1.0.0

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

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

- Audits HubSpot forms to identify unused, test, or deprecated forms.
- Flags forms with zero submissions, old/no recent activity, or "test" naming.
- Provides step-by-step instructions covering inventory, identification, deletion, and documentation.
- Includes rollback guidance and tips for safer form management.
- Requires HubSpot API token and Python client.

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

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

p2p_official_large
返回顶部