I have been trying to figure this out for the past couple of hours, mostly by using some code snippets found online, but since my PHP skills are quite rusty I haven't been able to put it together. If someone would be willing to take a couple of minutes to write this out, maybe make a blogpost out of it, I would really appreciate it.
So the idea is that the file is uploaded to the folder where Wordpress is installed via FTP, and after accessing it it's supposed to do the following:
- Get database credentials from wp-config.php
- Completely wipes the database using the credentials
- Deletes the Wordpress install folder in which it resides
I think it would be really useful for removing old Wordpress installs from a server, so I'm quite surprised I haven't been able to find something like this anywhere. Thank you!