Skip to content

Auto Clear Chat History

Overview

The Auto Clear Chat History feature enables automated cleaning of old WhatsApp chat messages and empty conversations after a specified time period. This helps maintain optimal system performance and ensures user privacy by automatically deleting outdated chat data.

auto-clear-chat-history

Benefits

  • Improves system performance by reducing database load
  • Enhances privacy by automatically removing old conversations
  • Prevents storage issues by managing chat data growth
  • Maintains a cleaner interface for support agents

Configuration Options

Activate Auto Clear Chat History

  • Toggle this option to enable or disable the automated chat cleanup process. When enabled, the system will automatically clear messages older than the specified timeframe.

Auto Clear History Time

  • Set the number of days after which chat messages should be automatically removed. Messages older than this timeframe will be deleted when the cron job runs.

  • Example : If you set the timeframe to 30 days, any messages older than 30 days will be automatically removed from the system during the next scheduled cleanup.

Manual Cleanup

  • You can also trigger an immediate chat cleanup by clicking the "Run Cleanup Now" button. This is useful when you want to clear old messages without waiting for the scheduled cron job.

Implementation Requirements

This feature requires a properly configured cron job to run automatically. Please ensure that:

  1. Your server has a properly configured cron job set up
  2. The cron job is scheduled to run at appropriate intervals
  3. The cron job has the necessary permissions to access the database

For assistance with cron job setup, please refer to the system documentation.

Cleanup Summary

After each cleanup operation, the system provides a summary of actions taken:

  • Number of messages found older than the specified timeframe
  • Number of old messages deleted
  • Number of empty chat conversations removed

© 2024 - Corbital Technologies. All rights reserved.