Many guides on this topic actually explain how to take a profile off a PS5, which is a very different job from destroying the account.
Remove a user from a PS5
To take one profile off a console, open Settings, go to Users and Accounts, and choose the option to delete users. Pick the profile and confirm. That erases its saved data, screenshots and videos from that PS5, so back up anything you care about first, either to PS Plus cloud storage or a USB drive. Your PSN account stays open, and you can sign in on another console and download your games again.
Removing your profile also stops other people on that console from playing your games. Console sharing is the setting that lets anyone on your home PS5 use your library; you’ll find it under Users and Accounts, in the Other section.
Reset the whole console
If you’re selling or giving the PS5 away, a factory reset is the right tool. Under Settings, open System, then System Software, then the reset options, and choose to reset your console. It wipes every user, game, save and capture from the machine, but it doesn’t touch your PSN account.
Lost the console already?
If you can’t get to the console, sign in to your account management page on the web and use device management to deactivate all devices. You can only do that once every six months, so save it for when you need it.