Tech:Deleting a wiki
Jump to navigation
Jump to search
Process
First, SSH to a mediawikiserver. The list of databases to be deleted should be available at Orain Meta, which is available in raw format at /srv/mediawiki/w/deleted.dblist. Please be sure the lists are okay.
Delete all entries from CentralAuth
A maintenance script is available for this.
php5 /srv/mediawiki/w/maintenance/Orain/removeDeletedWikis.php --wiki loginwiki
(don't change "loginwiki")
Delete all entries in the ansible-playbook
As the subject says. You can use GitHub's search features to search for any entries. Example: https://github.com/search?l=&q=testwiki+user%3Aorain&ref=advsearch&type=Code&utf8=%E2%9C%93 (you should replace "testwiki" with the appropriate databasename).
Deleting the databases
You'll need to connect to the dbserver. This requires a MariaDB user having root privileges. An example to connect:
mysql -h prod12.orain.org -u root -p
Done. The actual command to delete the database is:
DROP DATABASE yourdatabase;
Everything needed should be done now. If not, something gone wrong.