Deleting character after death

Can I do NutScript mode, so that the character was removed after death?

If possible, tell me how