diff --git a/lib/api/mediawiki.js b/lib/api/mediawiki.js index 2af925b..2c3d017 100644 --- a/lib/api/mediawiki.js +++ b/lib/api/mediawiki.js @@ -186,19 +186,6 @@ export class MediaWikiClient { return body; } - async purgePages (titles) { - if (!titles.length) return; - - // mediawiki has a 50 title per request limit, so we grab the first 50 - // and recurse to handle the rest - let currentTitles = titles.splice(0, 50); - const body = await this.fetchApiPost({ - action: 'purge', - titles: currentTitles.join('|'), - }); - return this.purgePages(titles); - } - /** * * @param {string} from The page's current name