deleteByPrefix = (prefix, tiddlers) => {

  if (!prefix) {
    return;
  }

  tiddlers = tiddlers || $tw.wiki.allTitles();

  const deletedTiddlers = [];
  for (let i = tiddlers.length; i--;) {
    if (basicUtils.startsWith(tiddlers[i], prefix)) {
      $tw.wiki.deleteTiddler(tiddlers[i]);
      deletedTiddlers.push(deletedTiddlers[i]);
    }
  }

  return deletedTiddlers;

}
Delete all tiddlers with a given prefix.

@param {string} prefix - The prefix