---
title: DROP EXTERNAL LOCATION
description: Drop an external location with DROP EXTERNAL LOCATION in Databricks SQL and Databricks Runtime.
canonical_url: https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-syntax-ddl-drop-location
---

# DROP EXTERNAL LOCATION

**Applies to:** ![check marked yes](https://docs.databricks.com/aws/en/images/icons/check.png) Databricks SQL ![check marked yes](https://docs.databricks.com/aws/en/images/icons/check.png) Databricks Runtime 10.4 LTS and above ![check marked yes](https://docs.databricks.com/aws/en/images/icons/check.png) Unity Catalog only

Drops an external location.
An exception is thrown if the location does not exist in the metastore.

## Permissions

To drop an external location, you must have the `MANAGE` privilege on the external location or be its owner.

## Syntax

```
DROP EXTERNAL LOCATION [ IF EXISTS ] location_name
```

## Parameters

* **`IF EXISTS`**

  If specified, no exception is thrown when the location does not exist.

* **[location\_name](https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-names.md#location-name)**

  The name of an existing location in the metastore.
  If the name does not exist, an exception is thrown unless `IF EXISTS` has been specified.

## Examples

```sql
> DROP EXTERNAL LOCATION some_location;
```

## Related articles

* [CREATE EXTERNAL LOCATION](https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-syntax-ddl-create-location.md)
* [DESCRIBE EXTERNAL LOCATION](https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-syntax-aux-describe-location.md)
* [External locations and storage credentials](https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-external-locations.md)
* [SHOW EXTERNAL LOCATIONS](https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-syntax-aux-show-locations.md)
