---
title: "Remove a bankaccount"
url: "https://docs.unified.to/hris/bankaccount/Remove_a_bankaccount"
description: "API reference for Remove a bankaccount. Launch multiple pre-built Bankaccount integrations today with zero maintenance — all through a single API."
generated_at: "2026-05-20T23:11:20.887Z"
---
# Remove a bankaccount

 DELETE/hris/{connection\_id}/bankaccount/{id}

## Parameters

**connection\_id**string  required 

ID of the connection

**id**string  required 

ID of the Bankaccount

## Code Samples

### Node.js SDK

```
import { UnifiedTo } from '@unified-api/typescript-sdk';

const sdk = new UnifiedTo({
    security: {
        jwt: '<YOUR_API_KEY_HERE>',
    },
});

const connectionId = '5de520f96e439b002043d8dc';

const id = '1234';

await sdk.hris.removeHrisBankaccount({ connectionId, id, 

 });
```

### Node.js (axios)

```
const options = {
  method: 'DELETE',
  url: 'https://api.unified.to/hris/5de520f96e439b002043d8dc/bankaccount/5de520f96e439b002043d8d8',
  headers: {
    authorization: 'bearer .....'
  },

};

const results = await axios.request(options);
```

### Java

```
AsyncHttpClient client = new DefaultAsyncHttpClient();

client.prepare("DELETE", "https://api.unified.to/hris/5de520f96e439b002043d8dc/bankaccount/5de520f96e439b002043d8d8")
  .setHeader("accept", "application/json")
  .setHeader("authorization", ".....")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
```

### Go

```
import (
	"fmt"
	"net/http"
	"io/ioutil"
)

url := `https://api.unified.to/hris/5de520f96e439b002043d8dc/bankaccount/5de520f96e439b002043d8d8

req, _ := http.NewRequest("DELETE", url, nil)

req.Header.Add("accept", "application/json")
req.Header.Add("authorization", ".....")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
```

### Python

```
import requests

url = "https://api.unified.to/hris/5de520f96e439b002043d8dc/bankaccount/5de520f96e439b002043d8d8"

headers = {
    "accept": "application/json",
    "authorization": "....."
}

response = requests.delete(url, headers=headers)
```

### PHP

```
$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_URL => "https://api.unified.to/hris/5de520f96e439b002043d8dc/bankaccount/5de520f96e439b002043d8d8",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "DELETE",
  CURLOPT_HTTPHEADER => [
    "accept: application/json",
    "authorization: ....."
  ],
]);
```

### Ruby

```
require 'uri'
require 'net/http'
require 'openssl'

url = URI("https://api.unified.to/hris/5de520f96e439b002043d8dc/bankaccount/5de520f96e439b002043d8d8")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Delete.new(url)
request["accept"] = 'application/json'
request["authorization"] = '....'

response = http.request(request)
puts response.read_body
```

### cURL

```
curl --request DELETE \
  --url 'https://api.unified.to/hris/5de520f96e439b002043d8dc/bankaccount/5de520f96e439b002043d8d8' \
  --header 'accept: application/json' \
  --header 'authorization: .....'
```
