Tech:Delete a wiki
Deleting a wiki is a fairly simple process if you have the required rights (Site Reliability Engineering) and follow the process below.
A wiki must be marked as deleted through the ManageWiki interface before it can be deleted. This is simply going to Special:ManageWiki/core/<dbname>
, where <dbname>
represents the given wiki's database name, on metawiki
.
- Note: This step should be completed by a Steward, usually following a request a stewards' noticeboard, notstanding wikis deleted pursuant to the Terms of Use
Wikis are put on a timer - meaning they can only be deleted after a certain number of days (the current Dormancy Policy states that this is 14 days). Therefore, there are two methods to delete a wiki.
Performing the deletion if 14 days have passed:
- Run
php /srv/mediawiki/w/extensions/CreateWiki/maintenance/deleteWikis.php --wiki=loginwiki <username>
- You will then receive SQL DROP DATABASE syntax that you can use to run on the relevant database server.
Performing the deletion if 14 days have not passed:
- Open up eval.php (
php /srv/mediawiki/w/maintenance/eval.php --wiki=loginwiki
) - Run the following code:
$wm = new Miraheze\CreateWiki\WikiManager( <dbname> ); $wm->delete( true );
- Drop the database on the relevant database server.