Hi Duran,
We can achieve this query ‘Is there a way to hide Dashboard Widgets?’ with the help of “beforeWidgetRender” event. Please refer to the below link to know more about this event
Also here we have attached the sample in which ‘no data available’ widget will be hide using beforeWidgetRender event.
Regards,
Mukil K.