You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Session folder grows to 1.8GB+ causing severe lag. How to prune safely without session invalidation? #2686
I am using @wppconnect/client in a production environment (Monolithic Node.js setup).
I've noticed that the userDataDir (Chrome session folder) grows extremely fast. Within 48 hours, it reaches 1.8GB, causing the bot to become very slow and unresponsive.
My Goal:
I need to reduce the folder size and cleanup the cache without invalidating the session (I must avoid asking the client to rescan the QR code).
Questions:
Safe Deletion: Which specific subfolders inside userDataDir are safe to delete via a Cron Job?
(e.g., Is it safe to delete Default/Cache, Default/Code Cache, Default/GPUCache, and Default/Service Worker/CacheStorage without killing the WA Session?)
Configuration: Is there a WPPConnect configuration to disable auto-downloading of media (Images/Videos) to prevent the IndexedDB or File System from bloating?
Best Practice: Does anyone have a script or strategy to maintain a lightweight session over long periods?
Activity
manfe commentedon Apr 30, 2026
I have this script, but I only recommend to do it when the connection is stopped.