async def cleanup_temp_file(self, file_path: str) -> None:
        """Clean up a temporary file after processing.

        Args:
            file_path: Path to the temporary file
        """
        try:
            if os.path.exists(file_path):
                os.remove(file_path)
                logger.debug(f"Cleaned up temp file: {file_path}")

                # Also try to clean up empty parent directories
                parent = Path(file_path).parent
                if parent.exists() and not any(parent.iterdir()):
                    parent.rmdir()

        except Exception as e:
            logger.warning(f"Failed to clean up temp file {file_path}: {e}")
Clean up a temporary file after processing.

        Args:
            file_path: Path to the temporary file
        
backend/airweave/platform/storage/storage_manager.py