Delete a connector

Delete a saved connector. Deletion cannot be restored, and data previously written through this connector will not be deleted.

HTTP
DELETE $CLOUDSIGMA_API_BASE/connectors/{connector_id}

Before you call

Configure the CloudSigma regional endpoint and authentication before calling. The endpoint, credentials, workspace, and resource IDs must belong to the same region. First Query connector details, check related_task_ids. Prepare personal access token, target workspace ID and connector ID that can access the target workspace.

If the connector is still in use by an unfinished import task, the deletion request will be rejected. Tackle these tasks first.

Path parameters

Replace $CLOUDSIGMA_API_KEY, $WORKSPACE_ID and $CONNECTOR_ID with actual values.

Shell
curl -X DELETE "$CLOUDSIGMA_API_BASE/connectors/$CONNECTOR_ID" \
  -H "X-API-Key: $CLOUDSIGMA_API_KEY" \
  -H "X-Workspace-ID: $WORKSPACE_ID"

Parameter

Type

Required

Description

connector_id

string

Yes

The connector ID to delete.

Successful response

JSON
{
  "code": "OK",
  "msg": "OK",
  "data": null
}

Field

Type

Description

code

string

A value of OK indicates that the connector has been deleted.

msg

string

Instructions for handling deletion requests.

data

null

This interface does not return deleted objects.

Error response

JSON
{
  "code": "ErrConnectorInUse",
  "msg": "connector is in use"
}

Field

Type

Description

code

string

Error code. Always inspect it: only OK means deletion succeeded.

msg

string

Readable error message.

Common HTTP errors

HTTP status

Error code

Common cause

Recommended action

400

ErrParamInvalid, ErrWorkspaceRequired

Invalid request field, workspace, or operation precondition.

Fix the request parameters and submit again.

401

Unauthorized, ErrServiceUnavailable, ErrIAMExplicitRoleInvalid

Missing or invalid authentication credentials.

Check the credential type, expiration, and authentication header.

403

ErrForbidden

The current identity or active role does not have permission for this operation.

Use an authorized identity or contact an administrator to grant access.

404

ErrNotFound

The target object or required reference was not found.

Verify the object identifier, workspace, and current status.

409

ErrAlreadyExists, ErrConnectorInUse

Conflict in resource state, request payload, or concurrent modification.

Re-read the current state and version, then handle according to the latest result.

500

ErrServer

Internal processing failed; write operations may have been partially applied.

Retain request and trace details, and verify the current state before retrying.

503

ErrServiceUnavailable

A business, runtime, or authorization dependency is temporarily unavailable.

After the dependency recovers, check existing results first instead of blindly repeating writes.

Last updated on