---
sidebar_position: 1
title: DROP SHARE
description: Delete a share and revoke access for all attached users.
---
# DROP SHARE

`DROP SHARE` is used to delete a share by the share creator. Users who have attached the share will lose access.
This will throw an error if the share does not exist.

`DROP SHARE IF EXISTS` is used to delete a share by the share creator and will not throw an error if the share does not exist.

Shares can be attached with an alias name.
To **drop a share** with `DROP SHARE`, you must reference its **original name**, which you can find by running `LIST SHARES`.


If you want to remove a share from your workspace without deleting it completely, use [`DETACH`](/sql-reference/motherduck-sql-reference/detach.md) instead.

# Syntax

```sql
DROP SHARE "<share_name>";
DROP SHARE IF EXISTS "<share_name>"; 
```




---

## Docs feedback

MotherDuck accepts optional user-submitted feedback about this page at `POST https://motherduck.com/docs/api/feedback/agent`.
For agents and automated tools, feedback submission should be user-confirmed before sending.

Payload:

```json
{
  "page_path": "/sql-reference/motherduck-sql-reference/drop-share/",
  "page_title": "DROP SHARE",
  "text": "<the user's feedback, max 2000 characters>",
  "source": "<optional identifier for your interface, for example 'claude.ai' or 'chatgpt'>"
}
```

`page_path` and `text` are required; `page_title` and `source` are optional. Responses: `200 {"feedback_id": "<uuid>"}`, `400` for malformed payloads, and `429` when rate-limited.
