public function delete($id=null)
    {
      if ($id) {
        $url = URIResource::Make($this->path, array($id));
      } else {
        $url = URIResource::Make($this->path, array($this->id));
      }

      $this->client->delete($url);
    }
public function delete($id=null)
    {
      if ($id) {
        $url = URIResource::Make($this->path, array($id));
      } else {
        $url = URIResource::Make($this->path, array($this->id));
      }

      $this->client->delete($url);
    }
public function delete ( $ id = null ) { if ( $ id ) { $ url = URIResource :: Make ( $ this -> path , array ( $ id ) ) ; } else { $ url = URIResource :: Make ( $ this -> path , array ( $ this -> id ) ) ; } $ this -> client -> delete ( $ url ) ; }
delete a media
file

TODO: this should not keep the object's
information. This will not be useful anymore!

@param id of model
delete a media file