diff --git a/pwnagotchi/log.py b/pwnagotchi/log.py index f13e5d2b..00cc13b8 100644 --- a/pwnagotchi/log.py +++ b/pwnagotchi/log.py @@ -307,3 +307,5 @@ def do_rotate(filename, stats, cfg): with open(log_filename, 'rb') as src: with gzip.open(archive_filename, 'wb') as dst: dst.writelines(src) + + os.remove(log_filename)