removes detail erb template after building