---
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>"; 
```


