purge-lockfile Strips yarn lockfile by a pattern. Usage npx purge-lockfile@latest PATTERN Example In test directory, you can find test lockfiles. The use case is that you have to strip every entry to make a clean install/reinstall.