created function to remove widgets uninstall packages

Function to remove widgets dashboard uninstall packages to avoid errors require, include files.