public function delete($match = '*')
	{
		if ($this->isAuthenticated())
		{
			$url = $this->getLink();

			if ($match === true)
			{
				$match = $this->xml->xpath('./@gd:etag');
				$match = $match[0];
			}

			try
			{
				$jdata = $this->query($url, null, array('GData-Version' => 2, 'If-Match' => $match), 'delete');
			}
			catch (\Exception $e)
			{
				if (strpos($e->getMessage(), 'Error code 412 received requesting data: Mismatch: etags') === 0)
				{
					throw new \RuntimeException("Etag match failed: `$match`.");
				}

				throw $e;
			}

			if ($jdata->body != '')
			{
				throw new \UnexpectedValueException("Unexpected data received from Google: `{$jdata->body}`.");
			}

			$this->xml = null;

			return true;
		}
		else
		{
			return false;
		}
	}
public function delete($match = '*')
	{
		if ($this->isAuthenticated())
		{
			$url = $this->getLink();

			if ($match === true)
			{
				$match = $this->xml->xpath('./@gd:etag');
				$match = $match[0];
			}

			try
			{
				$jdata = $this->query($url, null, array('GData-Version' => 2, 'If-Match' => $match), 'delete');
			}
			catch (\Exception $e)
			{
				if (strpos($e->getMessage(), 'Error code 412 received requesting data: Mismatch: etags') === 0)
				{
					throw new \RuntimeException("Etag match failed: `$match`.");
				}

				throw $e;
			}

			if ($jdata->body != '')
			{
				throw new \UnexpectedValueException("Unexpected data received from Google: `{$jdata->body}`.");
			}

			$this->xml = null;

			return true;
		}
		else
		{
			return false;
		}
	}
public function delete ( $ match = '*' ) { if ( $ this -> isAuthenticated ( ) ) { $ url = $ this -> getLink ( ) ; if ( $ match === true ) { $ match = $ this -> xml -> xpath ( './@gd:etag' ) ; $ match = $ match [ 0 ] ; } try { $ jdata = $ this -> query ( $ url , null , array ( 'GData-Version' => 2 , 'If-Match' => $ match ) , 'delete' ) ; } catch ( \ Exception $ e ) { if ( strpos ( $ e -> getMessage ( ) , 'Error code 412 received requesting data: Mismatch: etags' ) === 0 ) { throw new \ RuntimeException ( "Etag match failed: `$match`." ) ; } throw $ e ; } if ( $ jdata -> body != '' ) { throw new \ UnexpectedValueException ( "Unexpected data received from Google: `{$jdata->body}`." ) ; } $ this -> xml = null ; return true ; } else { return false ; } }
Method to delete a Picasa photo

@param   mixed  $match  Check for most up to date photo

@return  boolean  Success or failure.

@since   1.0
@throws  \Exception
@throws  \RuntimeException
@throws  \UnexpectedValueException
Method to delete a Picasa photo