def METHOD_NAME(self, path):
    try:
        os.remove(path)
    except Exception as exc:
        logger.debug(f"Error removing source file '{path}': {exc}")
        # mark the file for removal on next boot
        mark_file_for_deletion_on_windows(WindowsPath(path))