lib/Braintree/AddressGateway.php
public function delete($customerOrId = null, $addressId = null)
    {
        $this->_validateId($addressId);
        $customerId = $this->_determineCustomerId($customerOrId);
        $path = $this->_config->merchantPath() . '/customers/' . $customerId . '/addresses/' . $addressId;
        $this->_http->delete($path);
        return new Result\Successful();
    }
public function delete($customerOrId = null, $addressId = null)
    {
        $this->_validateId($addressId);
        $customerId = $this->_determineCustomerId($customerOrId);
        $path = $this->_config->merchantPath() . '/customers/' . $customerId . '/addresses/' . $addressId;
        $this->_http->delete($path);
        return new Result\Successful();
    }
public function delete ( $ customerOrId = null , $ addressId = null ) { $ this -> _validateId ( $ addressId ) ; $ customerId = $ this -> _determineCustomerId ( $ customerOrId ) ; $ path = $ this -> _config -> merchantPath ( ) . '/customers/' . $ customerId . '/addresses/' . $ addressId ; $ this -> _http -> delete ( $ path ) ; return new Result \ Successful ( ) ; }
delete an address by id

@param mixed $customerOrId
@param string $addressId
delete an address by id