Skip to main content
DELETE
/
connections
/
{connectionId}
JavaScript
import Cerca from '@cerca-dev/sdk';

const client = new Cerca({
  apiKey: process.env['CERCA_API_KEY'], // This is the default and can be omitted
});

const connection = await client.connections.delete('9f063c59-2775-4614-8a68-22e5f90f92f3', {
  ownerType: 'fleet',
});

console.log(connection.success);
{}

Documentation Index

Fetch the complete documentation index at: https://docs.cerca.dev/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

connectionId
string<uuid>
required
Minimum string length: 1
Example:

"9f063c59-2775-4614-8a68-22e5f90f92f3"

Query Parameters

ownerType
enum<string>
required

Public connection owner type.

Available options:
organization,
fleet
Example:

"fleet"

fleetId
string

Required when ownerType is fleet.

Example:

"fleet_abc123"

Response

Reusable connection deleted.

success
enum<boolean>
required
Available options:
true