Delete user account - Firebase

I want my application to have the option to delete the user but I don’t know which blocks to use
Please help

You do not specify if it is from DB realtime or authentication.
if what you want is to delete the user’s bucket you simply delete it, if it is auth you must use Api