Manual:Uninstallation

Removing MediaWiki entirely can be accomplished in two steps: removing the directory where MediaWiki was installed, and dropping the MediaWiki database from MySQL or Postgres.

Deleting the MediaWiki files
To uninstall the wiki itself, simply delete the directory containing the wiki's files.

For example, if you installed MediaWiki to /var/www/mediawiki-xyz, you might do:

Postgres
To remove the Postgres database holding your wiki, run the following command:

or connect to the database as a user with the correct permissions and issue: