k, your task is not so simple as you might think.
you need something to recursively parse the folder structure.
for that, best options propably are listed in udf-collection:
http://www.gwspikval.com/jooel/UDF

see some of the dirlist() dirscan() or dirplus() udf's

now, to implement these with getfilesize() is nothing much more than something like:

for each $file in dirred_folder()
if 0=getfilesize($file)
del $file
endif
next


how to use udf's you can find out in the FAQ forum.
_________________________
!

download KiXnet