protected function deleteAllInstance($_path) { if (!App\Files::isFile($_path)) { xplog('File "' . $_path . '" cannot be found while trying to delete', __METHOD__); return false; } App\Files::delete($_path); $filename = basename($_path); // TODO: delete on other directories code goes here // }