public function deleteIdentity($identity)
    {
        $this->_action = 'DeleteIdentity';
        $this->_method = 'GET';
        $this->_refreshDate();

        if (!(filter_var($identity, FILTER_VALIDATE_EMAIL) || preg_match('/^([a-z\d]+(-[a-z\d]+)*\.)+[a-z]{2,}$/', $identity))) {
            throw new Exception('Identity must be EmailAddress or Domain');
            return;
        }

        $parameters = array(
            'Identity' => $identity
        );

        $this->_generateSignature($parameters);
        $res = $this->_request();
        if ($res['code'] == 200) {
            return (string) $res['body']->ResponseMetadata->RequestId;
        } else {
            return new SimpleEmailServiceError((string) $res['body']->Error->Code);
        }
    }
public function deleteIdentity($identity)
    {
        $this->_action = 'DeleteIdentity';
        $this->_method = 'GET';
        $this->_refreshDate();

        if (!(filter_var($identity, FILTER_VALIDATE_EMAIL) || preg_match('/^([a-z\d]+(-[a-z\d]+)*\.)+[a-z]{2,}$/', $identity))) {
            throw new Exception('Identity must be EmailAddress or Domain');
            return;
        }

        $parameters = array(
            'Identity' => $identity
        );

        $this->_generateSignature($parameters);
        $res = $this->_request();
        if ($res['code'] == 200) {
            return (string) $res['body']->ResponseMetadata->RequestId;
        } else {
            return new SimpleEmailServiceError((string) $res['body']->Error->Code);
        }
    }
public function deleteIdentity ( $ identity ) { $ this -> _action = 'DeleteIdentity' ; $ this -> _method = 'GET' ; $ this -> _refreshDate ( ) ; if ( ! ( filter_var ( $ identity , FILTER_VALIDATE_EMAIL ) || preg_match ( '/^([a-z\d]+(-[a-z\d]+)*\.)+[a-z]{2,}$/' , $ identity ) ) ) { throw new Exception ( 'Identity must be EmailAddress or Domain' ) ; return ; } $ parameters = array ( 'Identity' => $ identity ) ; $ this -> _generateSignature ( $ parameters ) ; $ res = $ this -> _request ( ) ; if ( $ res [ 'code' ] == 200 ) { return ( string ) $ res [ 'body' ] -> ResponseMetadata -> RequestId ; } else { return new SimpleEmailServiceError ( ( string ) $ res [ 'body' ] -> Error -> Code ) ; } }
Delete an identity from your AWS account.

@param string $identity The identity to be removed from the list of identities
for the AWS Account. An email address or domain.

@return string RequestId or Error
Delete an identity from your AWS account .