how to remove package-lock.json from commit code example Example: delete package-lock.json command rm package-lock.json