The nfs-kernel-server
package can be removed with the following command:
$ sudo dnf remove nfs-kernel-server
If the system does not export NFS shares or act as an NFS client, it is recommended that these services be removed to reduce the remote attack surface.