B S W A G I C
Documentation

Auto Clear Chat History

Auto Clear Chat History
  • Overview : Automate cleanup of old chat messages and empty conversations
    • Performance : Reduce database size for better performance
    • Privacy : Remove outdated chat data regularly

Configuration Options

  • Activate Auto Clear Chat History : Enable/disable automated cleanup
    • Toggle : Turn on to start periodic deletions based on retention
  • Auto Clear History Time : Choose retention period (days)
    • Behavior : Messages older than the specified days are deleted
    • Example : 30 days: items older than 30 days are removed on next run
  • Important Notes : Requirements and timing
    • Cron : A properly configured cron job must run the cleanup
    • Timing : Deletion occurs after the specified days once the job executes

Manual Cleanup

  • Manual Cleanup : Run immediately when needed
    • Action : Click Run Cleanup Now to delete items older than your retention
    • Use Case : Perform urgent cleanup without waiting for the schedule

Implementation Requirements

  • Implementation Requirements : Ensure proper automation
    • Cron : Schedule to run (e.g., daily at midnight)
    • Permissions : Ensure DB access and execution rights