Remove things useless in remove srcipt