> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hydradb.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete Connector Resource

> Remove a resource from a connector and stop syncing it.

Removes a configured resource and stops syncing it. Objects already ingested into the knowledge store are not removed.

<RequestExample>
  ```bash cURL theme={"dark"}
  curl -X DELETE 'https://api.hydradb.com/connectors/{id}/resources/{resource_id}' \
    -H "Authorization: Bearer $HYDRA_DB_API_KEY" \
    -H "API-Version: 2"
  ```
</RequestExample>

## Path parameters

| Name          | Description                                                 |
| ------------- | ----------------------------------------------------------- |
| `id`          | Connector UUID returned by `POST /connectors`.              |
| `resource_id` | Resource identifier (from `GET /connectors/:id/resources`). |

<ResponseExample>
  ```json 200 theme={"dark"}
  {
    "connector_id": "{connector_id}",
    "deleted": true,
    "resource_id": "{resource_id}"
  }
  ```
</ResponseExample>

<div className="api-before-related-resources" />

## Related Resources

* [List Connector Resources](/api-reference/v2/endpoint/connector-resources)  -  verify the resource is gone
* [Add Connector Resource](/api-reference/v2/endpoint/add-connector-resource)  -  add it back


## OpenAPI

````yaml api-reference/v2/openapi.json DELETE /connectors/{id}/resources/{resource_id}
openapi: 3.1.0
info:
  contact:
    email: support@hydradb.com
    name: HydraDB Support
  description: >-
    HydraDB Application API — knowledge ingestion, search, and memory
    management.
  license:
    name: Proprietary
  title: HydraDB Application API
  version: 0.1.0
servers:
  - description: Production server
    url: https://api.hydradb.com
security: []
externalDocs:
  description: ''
  url: ''
paths:
  /connectors/{id}/resources/{resource_id}:
    delete:
      tags:
        - connectors
      summary: Delete a connector resource
      description: Remove a resource mapping from a connector.
      parameters:
        - description: Connector ID
          in: path
          name: id
          required: true
          schema:
            example: HydraDoc1234
            type: string
        - description: Resource ID
          in: path
          name: resource_id
          required: true
          schema:
            example: C0123456789
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                additionalProperties: {}
                type: object
          description: OK
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/handler.ErrorResponse'
          description: Bad Request
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/handler.ErrorResponse'
          description: Not Found
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/handler.ErrorResponse'
          description: Internal Server Error
      security:
        - BearerAuth: []
components:
  schemas:
    handler.ErrorResponse:
      properties:
        detail:
          $ref: '#/components/schemas/handler.ErrorDetail'
          description: Structured error detail with code, message, and deprecation hints.
          example:
            deprecated: true
            deprecated_field: tenant_id
            error_code: VALIDATION_ERROR
            message: Request validation failed
            preferred_field: database
            success: true
      type: object
    handler.ErrorDetail:
      properties:
        deprecated:
          description: Whether this response concerns a deprecated field or route.
          example: true
          type: boolean
        deprecated_field:
          description: The deprecated field name.
          example: tenant_id
          type: string
        error_code:
          description: Machine-readable error classification code.
          example: VALIDATION_ERROR
          type: string
        message:
          description: Human-readable description of the error.
          example: Request validation failed
          type: string
        preferred_field:
          description: The canonical replacement for the deprecated field.
          example: database
          type: string
        success:
          description: Always false for error responses.
          example: true
          type: boolean
      type: object
  securitySchemes:
    BearerAuth:
      bearerFormat: API key
      description: 'API key sent as a Bearer token: "Bearer prefix.secret"'
      scheme: bearer
      type: http

````