---
raw: true
search:
  tags:
    - Access
    - DELETE
seo:
  description: >-
    Revokes one managed grant after access is blocked and sessions… Reference
    for the DELETE /v1/spaces/{spaceId}/grants/{grantId} endpoint in the
    Spacefast API.
sidebar:
  label: Revoke a managed space grant
  badge: DELETE
title: Revoke a managed space grant
type: openapi-operation
---
Revokes one managed grant after access is blocked and sessions disconnect. To make a Space private, revoke each editable public grant. A public grant from config or the system keeps the Space public. The response includes any remaining runtime update.

`DELETE /v1/spaces/{spaceId}/grants/{grantId}`

**Responses**

- `200` — Response for status 200
- `default` — Problem details (RFC 9457). Any 4xx/5xx response is one \`application/problem+json\` document.

Response example, 200:

```json
{
  "$schema": "http://example.com",
  "data": {
    "id": "string",
    "revoked": true
  },
  "operation": {
    "id": "string",
    "kind": "string",
    "status": "queued",
    "resources": [
      {
        "type": "string",
        "id": "string"
      }
    ],
    "progress": {
      "total": 0,
      "completed": 0,
      "failed": 0
    },
    "diagnostics": [
      {
        "code": "string",
        "severity": "info",
        "message": "string",
        "path": "string",
        "provider": "infra",
        "details": {
          "property1": null,
          "property2": null
        },
        "fix": "string",
        "retryable": true
      }
    ],
    "createdAt": "2019-08-24T14:15:22Z",
    "finishedAt": "2019-08-24T14:15:22Z"
  }
}
```
