classes/phing/system/io/PhingFile.php
public function delete($recursive = false)
    {
        $fs = FileSystem::getFileSystem();
        if ($fs->canDelete($this) !== true) {
            throw new IOException("Cannot delete " . $this->path . "\n");
        }

        $fs->delete($this, $recursive);
    }
public function delete($recursive = false)
    {
        $fs = FileSystem::getFileSystem();
        if ($fs->canDelete($this) !== true) {
            throw new IOException("Cannot delete " . $this->path . "\n");
        }

        $fs->delete($this, $recursive);
    }
public function delete ( $ recursive = false ) { $ fs = FileSystem :: getFileSystem ( ) ; if ( $ fs -> canDelete ( $ this ) !== true ) { throw new IOException ( "Cannot delete " . $ this -> path . "\n" ) ; } $ fs -> delete ( $ this , $ recursive ) ; }
Deletes the file or directory denoted by this abstract pathname.  If
this pathname denotes a directory, then the directory must be empty in
order to be deleted.

@param  bool $recursive
@throws IOException
Deletes the file or directory denoted by this abstract pathname . If this pathname denotes a directory then the directory must be empty in order to be deleted .