def remove_checkpoint(self, path: _PATH) -> None:
        """Remove checkpoint file from the filesystem.

        Args:
            path: Path to checkpoint

        """
        fs = get_filesystem(path)
        if fs.exists(path):
            fs.rm(path, recursive=True)
            log.debug(f"Removed checkpoint: {path}")
Remove checkpoint file from the filesystem.

        Args:
            path: Path to checkpoint

        
src/lightning/fabric/plugins/io/torch_io.py