classes/phing/system/io/FileSystem.php
public function delete(PhingFile $f, $recursive = false)
    {
        if ($f->isDirectory()) {
            $this->rmdir($f->getPath(), $recursive);
        } else {
            $this->unlink($f->getPath());
        }
    }
public function delete(PhingFile $f, $recursive = false)
    {
        if ($f->isDirectory()) {
            $this->rmdir($f->getPath(), $recursive);
        } else {
            $this->unlink($f->getPath());
        }
    }
public function delete ( PhingFile $ f , $ recursive = false ) { if ( $ f -> isDirectory ( ) ) { $ this -> rmdir ( $ f -> getPath ( ) , $ recursive ) ; } else { $ this -> unlink ( $ f -> getPath ( ) ) ; } }
Delete the file or directory denoted by the given abstract pathname,
returning true if and only if the operation succeeds.

@param  PhingFile $f
@param  boolean $recursive
@throws IOException
Delete the file or directory denoted by the given abstract pathname returning true if and only if the operation succeeds .