Skip to content

feejin/DelTree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

#DelTree

Script for deleting all files and folders starting at a given directory $dir

Stolen from StackOverflow but putting it here saves me Googling it every time I need it.

Useful for getting rid of PHP owned folders when you don't have sudo access.

##Usage

Upload script to wherever.

Change $dir = 'xxxyyyzzz'; to the directory path, e.g. $dir = 'assets';

Run script.

Then probably delete it / change $dir so you don't forget and trash stuff by accident.

About

PHP recursive file and folder deletion script

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages