Skip to main content

How to Revert a Deleted Customer Account in WhautoChat?

Important:

This documentation applies only to WhautoChat Whitelabel Reseller Plan customers. These options are not available for other plans.

Overview

When an end customer deletes their WhautoChat account, the account data is retained on your server for 30 days by default. During this period, the deleted account can be restored.

  • ✅ Account can be reverted within 30 days
  • ❌ After 30 days, the account cannot be restored

Reverting a deleted account requires two steps from the Admin Dashboard.


Step 1: Clear CleanupQueue Records

When an account is deleted, related records are added to the CleanupQueue. These records must be removed to stop the cleanup process.

Steps:

  1. Log in to the Admin Dashboard.
  2. Navigate to the CleanupQueue section.
  3. Filter records using the accountId of the deleted account.
  4. You will see entries with the following types:
    • config
    • automation
    • communication
    • practitioner
    • account
  5. Delete all CleanupQueue records related to that accountId.

Step 2: Restore Team Members

After deletion, all team members (practitioners) under the account are marked as deleted and cannot log in.

Steps:

  1. Go to the Practitioner class/collection.
  2. Filter practitioners using the same accountId.
  3. Locate records where:
    • isDeleted = true
  4. Update each practitioner record and set:
    • isDeleted = false
  5. Save the changes.

Account Restoration Complete

Once both steps are completed:

  • The account is automatically restored
  • Customers and team members can log in again normally

How to Change the 30-Day Account Deletion Validity

You can customize the account deletion retention period by updating the environment configuration.

Steps:

  1. Open the app installation package shared by the WhautoChat team.
  2. Locate and open the web-server.env file.
  3. Find the following configuration:
    # DELETE ACCOUNT IN DAYS
    ACCOUNT_DELETION_DAYS=30
  4. Update the value to the desired number of days (e.g., 60 days).
  5. Save the changes.
  6. Load the updated file in the server.
  7. Restart the server to apply the changes.

Notes

  • Ensure the accountId is correct before making changes.
  • Account restoration is not possible after the retention period expires.
  • Changes to ACCOUNT_DELETION_DAYS apply to future deletions only.