Tweaked delete-script