---
title: "Clear the stream access level"
method: DELETE
path: "/_api/key/{keyid}/database/{dbname}/stream/{stream}"
tags: ["API Keys"]
---

# Clear the stream access level

`DELETE /_api/key/{keyid}/database/{dbname}/stream/{stream}`

## Request

- The document declares no server URL.
- Auth: one of:
  - API key in header `Authorization`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/macrometa/apis/macrometa-api-reference/docs/_api/key/:keyid/database/:dbname/stream/:stream/delete.ts> (a function with typed inputs; its response is checked against the schema)

Clears the stream access level for the *stream* of API key with *keyid*. Reverts to default stream access level. If there is no defined default stream access level, it defaults to *No access*.

## Path parameters

- `keyid` string, string, required
- `dbname` string, string, required
- `stream` string, string, required

## Response `202`

Successfully cleared access level.

- ApiKeyHttpExamplesRc202
  - `code` integer: HTTP response code.
  - `error` boolean, required: Flag if there is an error in response. *False* for this response.

## Other responses

- `400`: Failed due to missing or malformed data. Verify that all parameters are complete.
- `404`: Failed to find specified API key.

---

[API](https://skmtc.dev/macrometa/apis/macrometa-api-reference.md) - [All operations](https://skmtc.dev/macrometa/apis/macrometa-api-reference/llms.txt) - [OpenAPI document](https://skmtc.dev/macrometa/apis/macrometa-api-reference/revisions/2006b6d7f31d?raw)
