pedroslopez / whatsapp-web.js

A WhatsApp client library for NodeJS that connects through the WhatsApp Web browser app
https://wwebjs.dev
Apache License 2.0
14.95k stars 3.55k forks source link

delete folder session inside .wwebjs_auth #2746

Open ekapasha17 opened 7 months ago

ekapasha17 commented 7 months ago

Is there an existing issue for this?

Describe the bug

so, I have implemented the disconnected event emitter whenever I click logout from my phone, I could get the result but the thing is, I have no idea about deleting the folder inside the .wwebjs_auth, lets say I have folder session-tester when I click log out the folder still exist so I think the folder should be deleted from the .wwebjs_auth

Expected behavior

being able to delete folder session inside the .wwebjs_auth but whenever I tried to delete it's always told me if the folder is locked

Steps to Reproduce the Bug or Issue

but getting the error about folder being locked up

Relevant Code

No response

Browser Type

Chromium

WhatsApp Account Type

Standard

Does your WhatsApp account have multidevice enabled?

Yes, I am using Multi Device

Environment

OS: Windows
Phone OS: Android
whatsapp-web.js version 1.23.0
Node.js Version 18

Additional context

folder not being deleted when the client already logout

PurpShell commented 4 months ago

2816