/**
 * Delete Attributes Action Sample
 * Deletes one or more attributes associated with the item. If all attributes of an item are deleted, the item is
 * deleted.  
 * @param Amazon_SimpleDB_Interface $service instance of Amazon_SimpleDB_Interface
 * @param mixed $request Amazon_SimpleDB_Model_DeleteAttributes or array of parameters
 */
function invokeDeleteAttributes(Amazon_SimpleDB_Interface $service, $request)
{
    try {
        $response = $service->deleteAttributes($request);
        echo "Service Response\n";
        echo "=============================================================================\n";
        echo "        DeleteAttributesResponse\n";
        if ($response->isSetResponseMetadata()) {
            echo "            ResponseMetadata\n";
            $responseMetadata = $response->getResponseMetadata();
            if ($responseMetadata->isSetRequestId()) {
                echo "                RequestId\n";
                echo "                    " . $responseMetadata->getRequestId() . "\n";
            }
            if ($responseMetadata->isSetBoxUsage()) {
                echo "                BoxUsage\n";
                echo "                    " . $responseMetadata->getBoxUsage() . "\n";
            }
        }
    } catch (Amazon_SimpleDB_Exception $ex) {
        echo "Caught Exception: " . $ex->getMessage() . "\n";
        echo "Response Status Code: " . $ex->getStatusCode() . "\n";
        echo "Error Code: " . $ex->getErrorCode() . "\n";
        echo "Error Type: " . $ex->getErrorType() . "\n";
        echo "Request ID: " . $ex->getRequestId() . "\n";
        echo "XML: " . $ex->getXML() . "\n";
    }
}