You can unexport one file system path and optionally remove its corresponding entry from the /etc/exports file.
In addition, you can unexport all file system paths without removing their corresponding entries from the /etc/exports file.
Unexporting one file system path
To unexport one file system path without removing its corresponding entry from the /etc/exports file, you can use the exportfs -u command. To unexport one file system path and remove its corresponding entry from the /etc/exports file, you can use the exportfs -z command.
Unexporting all file system paths
To unexport all file system paths without removing their corresponding entries from the /etc/exports file, you can use the exportfs -ua command.