curl -X DELETE 'https://api.hydradb.com/connectors/{id}/resources/{resource_id}' \
-H "Authorization: Bearer $HYDRA_DB_API_KEY" \
-H "API-Version: 2"
{
"connector_id": "{connector_id}",
"resource_id": "{resource_id}",
"deleted": true
}
Delete Connector Resource
Stop syncing one resource of a connector.
DELETE
/
connectors
/
{id}
/
resources
/
{resource_id}
curl -X DELETE 'https://api.hydradb.com/connectors/{id}/resources/{resource_id}' \
-H "Authorization: Bearer $HYDRA_DB_API_KEY" \
-H "API-Version: 2"
{
"connector_id": "{connector_id}",
"resource_id": "{resource_id}",
"deleted": true
}
Removes a resource from the connector so it is no longer synced. Objects already synced from it stay in your database; delete them with Delete Context if you no longer want them.
resource_id is the id from List Connector Resources. Ids that contain / work as they are; URL-encode spaces and other reserved characters. The call returns deleted: true even when no such resource was configured.
curl -X DELETE 'https://api.hydradb.com/connectors/{id}/resources/{resource_id}' \
-H "Authorization: Bearer $HYDRA_DB_API_KEY" \
-H "API-Version: 2"
{
"connector_id": "{connector_id}",
"resource_id": "{resource_id}",
"deleted": true
}
Related Resources
- List Connector Resources: check the resource is gone
- Configure Connector: add it back
Authorizations
API key sent as a Bearer token: "Bearer prefix.secret"
Path Parameters
Connector ID
Example:
"HydraDoc1234"
Resource ID
Example:
"C0123456789"
Was this page helpful?
