ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified productivity Safety 3/5

wechat-draft-deleter

删除微信公众号草稿箱中的草稿。支持批量删除指定Media ID的草稿。

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/bigkingcn/wechat-draft-deleter
Or

What This Skill Does

The wechat-draft-deleter is a professional-grade automation tool designed for WeChat Official Account operators. It provides a robust interface to manage and purge drafts from your WeChat account's draft box directly from the command line. By leveraging the official WeChat draft management API, it ensures that your content management process is streamlined, whether you are tidying up testing artifacts or performing bulk maintenance on old, unused content. The skill supports single-item deletion, bulk processing via comma-separated IDs, and batch deletion from local text files, providing flexibility for various workflow requirements.

Installation

You can install this skill easily via the OpenClaw ecosystem. If you have clawhub configured, simply run the following command in your terminal: clawhub install openclaw/skills/skills/bigkingcn/wechat-draft-deleter

Alternatively, you can manually clone the repository from the source and execute the provided installation script. Ensure you have Python 3.6+ and the required dependencies installed. You must configure your WECHAT_APP_ID and WECHAT_APP_SECRET as environment variables before attempting any deletion operations.

Use Cases

  1. Routine Maintenance: Quickly remove dozens of expired, low-quality, or outdated drafts that clutter the official account后台.
  2. Automated Content Cleanup: Integrate this tool into a CI/CD or content pipeline to ensure that test-published drafts are purged automatically after successful validation.
  3. Batch Management: If your team manages large volumes of content, you can export a list of Media IDs to a text file and use this skill to perform a controlled bulk deletion across your account.

Example Prompts

  1. "OpenClaw, please delete the WeChat draft with ID DgrVBScHsvTZOSzU4WcnaTobRFBFXoaG0AIrFKAU_E6MKLBPNkZ9s6XVMv2GVFDl."
  2. "Use the wechat-draft-deleter to purge all drafts listed in my local file named media_ids.txt. Please proceed without asking for confirmation."
  3. "Can you help me clear out my WeChat draft box? I have the IDs ready in a list: id1, id2, id3."

Tips & Limitations

  • Caution: Deletion operations performed through this API are irreversible. Once a draft is deleted, it cannot be recovered. Always verify your Media IDs before executing.
  • Authentication: Ensure your WeChat Official Account has the appropriate developer permissions enabled for draft management. Without these, API requests will return authentication errors.
  • Rate Limiting: Be aware of WeChat's API call frequency limits. Avoid running mass deletions in extremely rapid succession to prevent hitting 45009 error codes.
  • Safety: Always perform a small-scale test with a single, non-critical draft before running a bulk batch delete to verify your environment configuration is correct.

Metadata

Author@bigkingcn
Stars4473
Views1
Updated2026-05-01
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-bigkingcn-wechat-draft-deleter": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags

#wechat#draft#delete#公众号#草稿#微信
Safety Score: 3/5

Flags: external-api, file-read, network-access