Remove wordpress complete

Hi,

I’d like to have an new wordpress installation. After removing and installing wordpress I found my old configuration an texts and so on. So I remove wordpress again by using the app center an I also removed the docker container by docker rmi [id.number].

locate wordpress shows me files an directiories.

/var/cache/univention-appcenter/appcenter.software-univention.de/4.1/
/var/lib/mysql/wordpress
/var/lib/univention-appcenter/apps/wordpress
/var/lib/univention-appcenter/backups/appcenter-backup-wordpress:*

Do I have to delete all this directories.

Cheers
Olaf

I compared my server with a fresh installation and answered the question by my self.

Now I need to know how to delete the wordpress database. A login as root is not possible.

Cheers
Olaf

Hi,

this should completely remove the wordpress data and files (after the app has been removed).

-> mysql -u root --password="$(cat /etc/mysql.secret)"
DROP DATABASE wordpress;
DELETE FROM mysql.user WHERE User='wordpress';

-> rm -rf /var/lib/univention-appcenter/apps/wordpress/wordpress/

Best regards,
Felix

1 Like

Mein Dank wird Dir ewig nachschleichen!

Thank you very much!

Cheers
Olaf

Mastodon