diff --git a/ansible/library/reduce_and_add_sonic_images.py b/ansible/library/reduce_and_add_sonic_images.py index 81e0de9e240..48b7b311680 100644 --- a/ansible/library/reduce_and_add_sonic_images.py +++ b/ansible/library/reduce_and_add_sonic_images.py @@ -367,6 +367,7 @@ def get_disk_total_size(module): exec_command(module, "rm -f /var/core/*", ignore_error=True) exec_command(module, "rm -rf /var/dump/*", ignore_error=True) exec_command(module, "rm -rf /home/admin/*", ignore_error=True) + exec_command(module, "rm -rf /host/logs_before_reboot/*", ignore_error=True) latest_used_percent = get_disk_used_percent(module) log("Done free up, latest used percent: {}".format(latest_used_percent)) else: