Delete Account
curl --request DELETE \
--url https://api.linkupapi.com/v2/accounts/{account_id} \
--header 'x-api-key: <x-api-key>'import requests
url = "https://api.linkupapi.com/v2/accounts/{account_id}"
headers = {"x-api-key": "<x-api-key>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {'x-api-key': '<x-api-key>'}};
fetch('https://api.linkupapi.com/v2/accounts/{account_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.linkupapi.com/v2/accounts/{account_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"x-api-key: <x-api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.linkupapi.com/v2/accounts/{account_id}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-api-key", "<x-api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.linkupapi.com/v2/accounts/{account_id}")
.header("x-api-key", "<x-api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.linkupapi.com/v2/accounts/{account_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-api-key"] = '<x-api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"account_id": "69c127c37cae0494dd827286",
"deleted": true,
"webhooks_deleted": 2,
"connections_deleted": 1,
"events_deleted": 47
},
"metadata": {
"action": "delete_account",
"credits_consumed": 0,
"timestamp": "2026-04-28T12:00:00Z"
}
}
{
"success": false,
"error": {
"code": "INVALID_ACCOUNT",
"message": "Account not found"
},
"metadata": {
"credits_consumed": 0,
"timestamp": "2026-04-28T12:00:00Z"
}
}
{
"success": false,
"error": {
"code": "INVALID_PARAMS",
"message": "Invalid account_id format"
},
"metadata": {
"credits_consumed": 0,
"timestamp": "2026-04-28T12:00:00Z"
}
}
Accounts
Delete Account
Disconnect an account and delete everything attached to it
DELETE
/
v2
/
accounts
/
{account_id}
Delete Account
curl --request DELETE \
--url https://api.linkupapi.com/v2/accounts/{account_id} \
--header 'x-api-key: <x-api-key>'import requests
url = "https://api.linkupapi.com/v2/accounts/{account_id}"
headers = {"x-api-key": "<x-api-key>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {'x-api-key': '<x-api-key>'}};
fetch('https://api.linkupapi.com/v2/accounts/{account_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.linkupapi.com/v2/accounts/{account_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"x-api-key: <x-api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.linkupapi.com/v2/accounts/{account_id}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-api-key", "<x-api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.linkupapi.com/v2/accounts/{account_id}")
.header("x-api-key", "<x-api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.linkupapi.com/v2/accounts/{account_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-api-key"] = '<x-api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"account_id": "69c127c37cae0494dd827286",
"deleted": true,
"webhooks_deleted": 2,
"connections_deleted": 1,
"events_deleted": 47
},
"metadata": {
"action": "delete_account",
"credits_consumed": 0,
"timestamp": "2026-04-28T12:00:00Z"
}
}
{
"success": false,
"error": {
"code": "INVALID_ACCOUNT",
"message": "Account not found"
},
"metadata": {
"credits_consumed": 0,
"timestamp": "2026-04-28T12:00:00Z"
}
}
{
"success": false,
"error": {
"code": "INVALID_PARAMS",
"message": "Invalid account_id format"
},
"metadata": {
"credits_consumed": 0,
"timestamp": "2026-04-28T12:00:00Z"
}
}
Disconnects a channel account and removes it, along with everything attached to it.
This endpoint is free — it does not consume any credits.
Permanent. Reconnecting later means a full Connect Account and a new
account_id. To pause temporarily, stop the webhooks instead.Path Parameters
string
required
The account to delete. Must belong to your API key.
Header Parameters
string
required
Your API key
What gets deleted
- the real-time monitor is stopped, which halts its billing
- every webhook on the account
- the cached connections snapshot
- stored webhook events
- the account itself
Response
boolean
Whether the deletion succeeded
object
{
"success": true,
"data": {
"account_id": "69c127c37cae0494dd827286",
"deleted": true,
"webhooks_deleted": 2,
"connections_deleted": 1,
"events_deleted": 47
},
"metadata": {
"action": "delete_account",
"credits_consumed": 0,
"timestamp": "2026-04-28T12:00:00Z"
}
}
{
"success": false,
"error": {
"code": "INVALID_ACCOUNT",
"message": "Account not found"
},
"metadata": {
"credits_consumed": 0,
"timestamp": "2026-04-28T12:00:00Z"
}
}
{
"success": false,
"error": {
"code": "INVALID_PARAMS",
"message": "Invalid account_id format"
},
"metadata": {
"credits_consumed": 0,
"timestamp": "2026-04-28T12:00:00Z"
}
}
Notes
- The Sales Nav seat goes with the account. The licence is untouched — reconnect with
sales_nav: trueto restore the seat - An account owned by another API key returns
404, same as an unknown one - Safe to repeat: a second delete returns
404 - Does not log the user out of LinkedIn
Was this page helpful?