File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -264,6 +264,11 @@ export const deleteSessionData = (config: ConfigObject) : boolean => {
264264 log . info ( l )
265265 fs . unlinkSync ( sessionjsonpath ) ;
266266 }
267+ const mdDir = config [ 'userDataDir' ] ;
268+ if ( mdDir ) {
269+ log . info ( `Deleting MD session directory: ${ mdDir } ` )
270+ fs . rmdirSync ( mdDir , { recursive : true } )
271+ }
267272 return true ;
268273}
269274
Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ export async function create(config: AdvancedConfig | ConfigObject = {}): Promis
6565
6666 if ( config ?. waitForRipeSession !== false ) config . waitForRipeSession = true ;
6767 if ( config ?. multiDevice !== false ) config . multiDevice = true ;
68+ if ( config ?. deleteSessionDataOnLogout !== false ) config . deleteSessionDataOnLogout = true ;
6869
6970 if ( ! config ?. skipUpdateCheck || config ?. keepUpdated ) {
7071 notifier = await updateNotifier ( {
You can’t perform that action at this time.
0 commit comments