---
title: "Clear the query worker access level."
method: DELETE
path: "/_api/key/{keyid}/database/{geofabric}/restql/{query-worker}"
tags: ["API Keys"]
---

# Clear the query worker access level.

`DELETE /_api/key/{keyid}/database/{geofabric}/restql/{query-worker}`

## 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/:geofabric/restql/:query-worker/delete.ts> (a function with typed inputs; its response is checked against the schema)

Clears the access level for the query worker *query worker* in the GeoFabric *geofabric* of API key with *keyid*. After this runs, the default query worker access level is used. If there is no defined default query worker access level, then it defaults to *No access*.

**Note**: Requires *administrator* permissions.

## Path parameters

- `keyid` string, string, required
- `geofabric` string, string, required
- `query-worker` string, string, required

## Response `202`

Successfully cleared query worker 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 fabric, API key, or query worker.

---

[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)
