Actions43
- 用户标签 Actions
- 用户 Actions
- 模板 Actions
- 发布 Actions
- 其他 Actions
- 菜单 Actions
- 素材 Actions
- 草稿 Actions
- 评论 Actions
Overview
This node interacts with the Wechat Official Account platform, specifically allowing users to manage permanent media materials. The "删除永久素材" (Delete Permanent Material) operation enables users to delete a permanent media file from their Wechat Official Account by specifying its media file ID. This is useful for maintaining and organizing media assets, removing outdated or unwanted files to keep the account clean and efficient.
Practical examples include:
- Removing an image or video that is no longer relevant to your content strategy.
- Cleaning up storage by deleting unused permanent media files.
- Automating media lifecycle management in workflows that update or refresh content regularly.
Properties
| Name | Meaning |
|---|---|
| 媒体文件ID | The unique identifier of the permanent media file to be deleted. This is a required string input. |
Output
The node outputs JSON data representing the result of the deletion operation. Typically, this will confirm whether the deletion was successful or provide error details if it failed.
- The
jsonoutput field contains the response from the Wechat API regarding the deletion request. - No binary data output is expected from this operation.
Dependencies
- Requires an API key credential for authenticating with the Wechat Official Account platform.
- The node depends on the Wechat Official Account API being accessible and properly configured.
- Proper permissions must be granted to the API key to allow deletion of permanent media.
Troubleshooting
Common issues:
- Invalid or expired media file ID: Ensure the media ID provided exists and is correct.
- Insufficient permissions: Verify that the API key has rights to delete permanent media.
- Network or API errors: Check connectivity and Wechat API status.
Error messages:
"未实现方法: 素材.删除永久素材"(Unimplemented method): Indicates the operation is not supported or incorrectly referenced; verify resource and operation names.- API error responses related to invalid media ID or permission denied will be returned in the node's output JSON under the error message field.
To resolve errors, double-check input parameters, credentials, and API access rights.
Links and References
- Wechat Official Account API Documentation (official resource for API details)
- n8n documentation on Creating Custom Nodes for further customization guidance