Board Thread:Support Requests - Getting Technical/@comment-256004-20161107145525/@comment-256004-20161108172650

452 wrote me some API code to get rid of those pages, but before I could try it out, the Wikia admins have restored the Type namespace, so I deleted them the old-fashioned way. If anyone ever faces that problem again, here is 452's code (hope he doesn't mind the repost):

deleteArray = new Array; function deleteOld {	//copied from http://dev.wikia.com/wiki/AjaxBatchDelete if (deleteArray.length == 0) { console.log("All pages deleted"); return; } deleteThis = deleteArray.pop.split("\t"); var url = wgServer + wgScriptPath + '/api.php?action=delete&format=json&pageid='+deleteThis[0]+'&reason=Housekeeping&token=' + window.encodeURIComponent(mw.user.tokens.get('editToken'));

$.post(url, function(data) {		if(data.error) console.log(deleteThis[1]+" > Error: " + data.error.info);		else console.log(deleteThis[1]+" > Deleted");		setTimeout(deleteOld, 1000);	} ); } new mw.Api.get({ action: 'query',list: 'categorymembers',cmtitle: "Category:Types",}) .done(function(d) {	for (var i in d.query.categorymembers)		deleteArray.push(d.query.categorymembers[i].pageid+"\t"+d.query.categorymembers[i].title);	deleteOld; });