diff --git a/cli/src/commands/asset.ts b/cli/src/commands/asset.ts index 164e10aa26..a66c34244c 100644 --- a/cli/src/commands/asset.ts +++ b/cli/src/commands/asset.ts @@ -332,7 +332,10 @@ const deleteFiles = async ({ files: string[], duplicates: string[] } , options: deletionProgress.stop(); } - + + if (!options.deleteDuplicates) { + return; + } console.log('Deleting assets which are duplicates...'); const deletionProgressDupe = new SingleBar(