# Remove workspace public access

Source: https://docs.vlayers.ai/reference/public-access/delete-workspace-public-access

`DELETE /v1/public-access/settings/workspace` · scope `public_access:write`

Removes the workspace's own row, so the workspace inherits the platform and plan values. Removing a row that said off loosens, and needs a workspace admin.

Requires an API key with the `public_access:write` scope.

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `if-match` | header | string | no | The `version` of the row this edit was made from. A stale one is refused with 409 `version_conflict` instead of overwriting a newer change. Leave it out when creating a row. Example: `"3"` |

## Request

cURL:

```bash
curl -X DELETE https://api.vlayers.ai/v1/public-access/settings/workspace \
  -H "Authorization: Bearer $VOICELAYER_API_KEY"
```

TypeScript:

```ts
import { VoiceLayer } from '@voicelayer/api';

const voicelayer = new VoiceLayer();

await voicelayer.publicAccess.removeWorkspace();
```

Python:

```python
from voicelayer import VoiceLayer

vl = VoiceLayer()

vl.publicAccess.remove_workspace()
```
