Using script "post-user-creation-hook.sh" the user home directory getting created automatically and I'm able to view the user folder as below but after the user has been deleted in ambari console still the user home path exists. Kindly assist. Much appreciated for your quick response.
# hdfs dfs -ls /user/
drwxr-xr-x - unknown hdfs 0 2017-12-12 17:23 /user/unknown
The post-user-creation-hook.sh is only executed after user creation and currently there is no post-user-deletion hook in Ambari. I'm afraid you have to delete the home directory manually after removing the user.