Deleting Information

You can delete an account.

However, an account that is linked to a Browser Transfer Group or D-Client settings cannot be deleted and an error response is returned.

Request Interface

HTTP Request

DELETE /accounts/definition/{accountId}

Parameter

Path Parameter

Value

Required

Description

Default Value

accountId

string

true

ID of the account to delete.(32 alphanumeric character)

-

Response Interface

If the request is processed successfully, the response body is not returned.

Examples

public static void main(String[] args) {
    String host = "https://www.webconnect.hulft.com";
    String apiKey = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
    String accountId = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
    try {
        URL url = new URL(host + "/api/v2/accounts/definition/" + accountId);
        HttpURLConnection connection = (HttpURLConnection) url.openConnection();
        connection.setRequestMethod("DELETE");
        connection.setRequestProperty("Authorization", "Bearer " + apiKey);
        System.out.println(connection.getResponseMessage()); 
				// The response does not contain the response body.
    } catch (IOException ex) {
        // error
    }
}

// load jquery 
var host = 'https://www.webconnect.hulft.com';
var apiKey = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';
var accountId  = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';
$.ajax({
  type: 'DELETE',
  url: host + '/api/v2/accounts/definition/' + accountId ,
  headers: {
    Authorization: 'Bearer ' + apiKey
  }
}).done(function(data, status, xhr) {
  console.log(data);
}).fail(function(data, status, xhr) {
  console.log(data);
});