Hello everyone, today I'll show you how to clean up Xenforo 1 after upgrading to Xenforo 2.
View attachment 79623
To clean up, there's an addon called XF1 Cleanup Command, but many users may not have CLI permissions, and I find it slower.
A quicker method is to use the code I've written below. Create a file named delete.php alongside index.php and paste the following code into it:
PHP:
<?php
// Directory path containing the files to delete
$baseDir = __DIR__;
// Function...