Recursively remove all the files and sub-directories (including the root)...

Well, I had to create one for my GFNDev add-on for XenForo and thought of giving it out to the future Googlers (if my post ever gets to the first page that is...).

I don't know how good or bad this piece of code is but it actually works! And the speed is also good for me.

Do note that this is a highly dangerous piece of code as this can wipe out your whole system if executed with the right permission(s)...

Saif M.

An ex-weeaboo who likes to do almost everything that do not involve studying and physical exertion.

Disqus this post