diff --git a/src/storage/gcs.js b/src/storage/gcs.js index 93e0c0523..3ae7224f0 100644 --- a/src/storage/gcs.js +++ b/src/storage/gcs.js @@ -268,7 +268,7 @@ function removeDir(apiConfig, pathPrefix) { const batchSize = 1; var total = 0, concurrency = 4; - listDir(apiConfig, oldFilePath, batchSize, function (files, done) { + listDir(apiConfig, pathPrefix, batchSize, function (files, done) { total += files.length; if (retryCount === 0) concurrency = Math.min(concurrency + 1, 10); else concurrency = Math.max(concurrency - 1, 5);