sudharsan-selvaraj / appium-dashboard-plugin

Appium plugin that provides complete test logs, video recording of test and device logs(logcat and syslogs) for easy debugging.
116 stars 28 forks source link

database.sqlite file has consumed 45GB, Do we have any auto cleanup for this? #138

Open SushanthN opened 10 months ago

SushanthN commented 10 months ago

@sudharsan-selvaraj Currently I can see the database.sqlite file has occupied a large storage of 45GB on my machine. Can you help me to understand what this file does. Will there be any consequences on deleting it. Do we have any auto clean up or how do i manage it ?

sudharsan-selvaraj commented 10 months ago

You can delete all the session data from the UI by clicking the delete all sessions. This will clear all data and brings back the dashboard to original state.

Otherwise,you can also delete the sqlite database and remove the entire folder that contains images and videos of the session and then reinstall the plugin to bring back the original state.

SushanthN commented 10 months ago

@sudharsan-selvaraj In my case I dont want to delete all because i need the latest run for my reference. I need to delete only the old videos based on timestamp for which i have added a cron.

Now how do i handle this file database.sqlite

SushanthN commented 10 months ago

@sudharsan-selvaraj Any suggestions here

sudharsan-selvaraj commented 10 months ago

One think i can think of is you can clear data related to adb logs, profiling and http logs. To do so, install sqlite db and truncate the below tables from the database

  1. profiling
  2. http_logs
  3. logs
SushanthN commented 10 months ago

@sudharsan-selvaraj Thanks. let me try and get back to you in case of any issues