Skip to content

Commit

Permalink
force unpublish
Browse files Browse the repository at this point in the history
  • Loading branch information
nvuillam committed Jun 23, 2024
1 parent 0506ce0 commit 43c70a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deleteVersions.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function getPackageVersions(packageName) {

function deletePackageVersion(packageName, version) {
try {
execSync(`npm unpublish ${packageName}@${version}`);
execSync(`npm unpublish --force ${packageName}@${version}`);
console.log(`Successfully deleted ${packageName}@${version}`);
} catch (error) {
console.error(`Failed to delete ${packageName}@${version}: ${error.message}`);
Expand Down

0 comments on commit 43c70a9

Please sign in to comment.