purging the files that are not necessary to run the widget