WaliChat icon

WaliChat

Interact with WaliChat WhatsApp API

Actions148

User Status → Delete User Status

AI-generated

Overview

This node allows users to delete WhatsApp user statuses associated with a specific WhatsApp number. It supports multiple deletion methods, including deleting all statuses, deleting scheduled statuses by their IDs, or deleting specific statuses by their WhatsApp IDs. This functionality is useful for managing and cleaning up user status content programmatically, such as removing outdated or unwanted statuses from a WhatsApp business account.

Practical examples:

  • Automatically clear all user statuses at the end of a marketing campaign.
  • Remove specific scheduled statuses that are no longer relevant before they get published.
  • Delete particular statuses identified by their unique WhatsApp IDs to maintain updated status content.

Properties

Name Meaning
WhatsApp Number The ID of the WhatsApp number (device) from which statuses will be deleted.
Delete Method The method used to delete statuses. Options: "Delete All", "Delete Scheduled Status", "Delete Specific Status".
Scheduled Status IDs (Required if "Delete Scheduled Status" selected) Array of 24-character hexadecimal IDs representing scheduled statuses to delete.
Status IDs (Required if "Delete Specific Status" selected) Array of WhatsApp IDs (WID) of statuses to delete.

Output

The node outputs JSON data representing the result of the delete operation(s). Typically, this will include confirmation of successful deletions or error information if any issues occurred during the process.

No binary data output is involved in this operation.

Dependencies

  • Requires an API key credential to authenticate with the WaliChat WhatsApp API service.
  • The node depends on the external WaliChat API endpoints related to user status management.
  • The node uses a dynamic options loader method (getDevices) to populate the WhatsApp Number property with available devices.

Troubleshooting

  • Common Issues:

    • Providing invalid or empty WhatsApp number/device ID will cause the operation to fail.
    • Incorrect or malformed status IDs (not 24-length hex strings for scheduled statuses or invalid WIDs for specific statuses) will result in errors.
    • Attempting to delete statuses without selecting the appropriate delete method or without providing required IDs for that method will cause validation errors.
  • Error Messages:

    • Errors related to authentication failures indicate missing or invalid API credentials.
    • Validation errors about missing parameters suggest that required fields were not filled based on the chosen delete method.
    • API errors may occur if the specified statuses do not exist or have already been deleted; these should be handled gracefully.

To resolve these issues:

  • Ensure the correct WhatsApp number/device is selected.
  • Provide valid IDs matching the expected format for the chosen delete method.
  • Verify API credentials and permissions.
  • Use the "Delete All" method if unsure about specific IDs to remove all statuses safely.

Links and References

  • WaliChat API Documentation (for detailed API usage and status management)
  • WhatsApp Business API guides on status management (general concepts applicable)

Discussion