rm previous package properly