---
title: "Deprecated: use DELETE /plugins/app:{app}/share?workspace=&api_key= (or all_api_keys=true). Take a grant back [write]"
method: DELETE
path: "/connectors/connections/{id}/grants"
tags: ["connectors"]
deprecated: true
---

# Deprecated: use DELETE /plugins/app:{app}/share?workspace=&api_key= (or all_api_keys=true). Take a grant back \[write\]

`DELETE /connectors/connections/{id}/grants`

## Request

- Base URL: `https://api.agentsky.dev/v1`
- URL: `https://api.agentsky.dev/v1/connectors/connections/{id}/grants`
- Auth: HTTP bearer

> **Deprecated.**

Deprecated: use `DELETE /plugins/app:{app}/share?workspace=&api_key= (or all_api_keys=true)`. Still served exactly as before; every answer carries a `Deprecation` header. Same body as granting names the grant: the selected workspace and, with `key_id`, one key. The service loses the connection at once. 404 when there is no such grant. Sends `connector.revoked`.

## Path parameters

- `id` string, required

## Request body

- object
  - `key_id` string: One key of the workspace (its id from GET /universes/{slug}/keys or GET /api_keys). Omitted: every key of the workspace.

## Response `204`

Revoked

## Other responses

- `default`: Error — { error: { code, message } }

## Changes

- **2026-11-02** `e5e8f0229a99`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/agentsky/apis/agentsky-developer-api/changes/connectors/connections/:id/grants/delete.md)

---

[API](https://skmtc.dev/agentsky/apis/agentsky-developer-api.md) - [All operations](https://skmtc.dev/agentsky/apis/agentsky-developer-api/llms.txt) - [OpenAPI document](https://skmtc.dev/agentsky/apis/agentsky-developer-api/revisions/0d435187cd55?raw)
