delete (subuser)

Deletes a subuser.

Request parameters for delete (subuser)

Standard parameters

  • action = delete
  • object = subuser
  • registrant_ip = valid IP address of the registrant (optional)
  • username = name of the user account

Attributes

Parameters within the attributes associative array are described below.

Parameter name

Obligation

Definition/Value

domain

Required

The relevant domain.

sub_id

Required

The ID of the sub-user to be deleted.

Response parameters for delete (subuser)

Standard parameters

  • action = reply
  • object = subuser
  • is_success = a Boolean is returned, indicating success or failure of the
    request
  • response_code = response code indicating outcome of the request
  • response_text = message describing the outcome of the request

Examples for delete (subuser)

Request

<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<!DOCTYPE OPS_envelope SYSTEM 'ops.dtd'>
<OPS_envelope>
    <header>
        <version>0.9</version>
    </header>
    <body>
        <data_block>
            <dt_assoc>
                <item key="attributes">
                    <dt_assoc>
                        <item key="sub_id">2532880</item>
                    </dt_assoc>
                </item>
                <item key="protocol">XCP</item>
                <item key="action">delete</item>
                <item key="object">subuser</item>
                <item key="domain">yourdomain.com</item>
                <item key="username">aaaa</item>
            </dt_assoc>
        </data_block>
    </body>
</OPS_envelope>

Response

<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<!DOCTYPE OPS_envelope SYSTEM 'ops.dtd'>
<OPS_envelope>
    <header>
        <version>0.9</version>
    </header>
    <body>
        <data_block>
            <dt_assoc>
                <item key="protocol">XCP</item>
                <item key="action">REPLY</item>
                <item key="object">SUBUSER</item>
                <item key="response_text">Command Successful</item>
                <item key="is_success">1</item>
                <item key="response_code">200</item>
            </dt_assoc>
        </data_block>
    </body>
</OPS_envelope>