Did a POC, and dashboards are available to other users if shared before deletion.
I found a workaround for this case as follows,
-
get dashboards and analysis whose owner is user using search-dashboard, search-analysis commands
-
delete dashboard and analysis
-
delete user