You shouldn’t need to do this.
I would recommend doing:
Verify the kernel you are running:
uname -r
Follow the steps listed in this post to clear up the versions that are no longer installed/running.
The files that I see:
config-6.17.11-300.fc43.x86_64
initramfs-6.17.11-300.fc43.x86_64.img
symvers-6.17.11-300.fc43.x86_64.xz
System.map-6.17.11-300.fc43.x86_64
vmlinuz-6.17.11-300.fc43.x86_64
If you’re concerned about space issues:
I would suggest following the instructions here to remove the rescue kernel
or
You can reduce the number of kernels installed.
sudo dnf config-manager setopt installonly_limit=2
sudo dnf upgrade
I would monitor for errors during the next upgrade to ensure that the kernels are being removed correctly.