How to remove a (non-empty) directory


/ Published in: PHP
Save to your folder(s)

Here’s a snippet that can help you to remove a non-empty directory from the server. It’s a recursive function that deletes the directory with its files, folders and sub-folders.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.