In order to delete a file the web server process needs write permission to the directory. You do not however want to allow this as it opens up all sorts of security issues. Your best bet is to use the [man]ftp[/man] functions as these will be executed with your user permissions.