<?php
exec("rm -rf $dirname", $Output,$ReturnVal);
?>
that one little line of code from your reply to jiri back in August (an hour of searching after 5 hours of attempted coding and suitable yelling) just helped me back to sanity.
I was going insane trying to either empty the damned directory or delete it full. Thanks.