Delete User Upon Rejection

If you want to delete the user or the user's data once their registration is rejected and send only an email rejection notification, you need to use the code below:

The reject user notification is need to be set in WP Admin > Ultimate Member > Settings > Emails.

wp-admin>Users