public function remove_file()
    {
        if ($this->is_physically_present() && is_writable($this->getRealPath())) {
            unlink($this->getRealPath());

            $this->delete_data_from_cache();

            $permalink = $this->get_permalink();

            if ($permalink instanceof media_Permalink_Adapter) {
                $permalink->delete_data_from_cache();
            }

            $this->markPhysicallyUnavailable();
        }

        return $this;
    }
public function remove_file()
    {
        if ($this->is_physically_present() && is_writable($this->getRealPath())) {
            unlink($this->getRealPath());

            $this->delete_data_from_cache();

            $permalink = $this->get_permalink();

            if ($permalink instanceof media_Permalink_Adapter) {
                $permalink->delete_data_from_cache();
            }

            $this->markPhysicallyUnavailable();
        }

        return $this;
    }
public function remove_file ( ) { if ( $ this -> is_physically_present ( ) && is_writable ( $ this -> getRealPath ( ) ) ) { unlink ( $ this -> getRealPath ( ) ) ; $ this -> delete_data_from_cache ( ) ; $ permalink = $ this -> get_permalink ( ) ; if ( $ permalink instanceof media_Permalink_Adapter ) { $ permalink -> delete_data_from_cache ( ) ; } $ this -> markPhysicallyUnavailable ( ) ; } return $ this ; }
Removes the file associated to a subdef

@return \media_subdef
Removes the file associated to a subdef