diff --git a/kiauh/utils/fs_utils.py b/kiauh/utils/fs_utils.py index c2466c2..7149aad 100644 --- a/kiauh/utils/fs_utils.py +++ b/kiauh/utils/fs_utils.py @@ -59,9 +59,9 @@ def create_symlink(source: Path, target: Path, sudo=False) -> None: raise -def remove_with_sudo(file_path: Path) -> None: +def remove_with_sudo(file: Path) -> None: try: - cmd = ["sudo", "rm", "-f", file_path] + cmd = ["sudo", "rm", "-rf", file] run(cmd, stderr=PIPE, check=True) except CalledProcessError as e: Logger.print_error(f"Failed to remove file: {e}")