rm scripts lines from templates