---
title: ALTER VOLUME
description: Rename or change the owner of a volume with ALTER VOLUME in Databricks SQL and Databricks Runtime.
canonical_url: https://docs.databricks.com/gcp/en/sql/language-manual/sql-ref-syntax-ddl-alter-volume
---

# ALTER VOLUME

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

Alters the name or owner of a volume.

## Permissions

`RENAME` and `SET OWNER` require ownership of the volume (or `MANAGE` on it), plus `USE CATALOG` on the parent catalog and `USE SCHEMA` on the parent schema.

`SET TAGS` and `UNSET TAGS` require `APPLY TAG` on the volume, plus `USE CATALOG` on the parent catalog and `USE SCHEMA` on the parent schema.

## Syntax

```
ALTER VOLUME volume_name
      { RENAME TO new_volume_name |
        [ SET ] OWNER TO principal |
        SET TAGS clause |
        UNSET TAGS clause }
```

### Parameters

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

  The name of the volume to be altered.

* **RENAME TO [new\_volume\_name](https://docs.databricks.com/gcp/en/sql/language-manual/sql-ref-names.md#volume-name)**

  Renames `volume_name` to `new_volume_name`. The new name must be unique and the schema must not change.

* **\[ SET ] OWNER TO [principal](https://docs.databricks.com/gcp/en/sql/language-manual/sql-ref-principal.md)**

  Transfers ownership of the volume to `principal`.

  `SET` is allowed as an optional keyword.

* **`SET TAGS ( { tag_name = tag_value } [, ...] )`**

  **Applies to:** ![check marked yes](https://docs.databricks.com/gcp/en/images/icons/check.png) Databricks SQL ![check marked yes](https://docs.databricks.com/gcp/en/images/icons/check.png) Databricks Runtime 14.3 and above

  Apply tags to the volume. You need to have `APPLY TAG` permission to add tags to the volume.

  * **tag\_name**

    A literal `STRING`. The `tag_name` must be unique among all tags associated with the specified volume.

  * **tag\_value**

    A literal `STRING`.

* **`UNSET TAGS ( tag_name [, ...] )`**

  **Applies to:** ![check marked yes](https://docs.databricks.com/gcp/en/images/icons/check.png) Databricks SQL ![check marked yes](https://docs.databricks.com/gcp/en/images/icons/check.png) Databricks Runtime 14.3 and above

  Remove tags from the volume. You need to have `APPLY TAG` permission to remove tags from the volume.

  * **tag\_name**

    A literal `STRING`. The `tag_name` must be unique among all tags associated with the specified volume.

## Examples

```sql
- Change the owner of the volume `my_volume`
> ALTER VOLUME my_volume SET OWNER TO alf@melmak.et
  OK

- Change the name of the volume from `my_volume` to `new_name_volume`
> ALTER VOLUME my_volume RENAME TO new_name_volume
  OK

-- Applies three tags to the volume named `my_volume`.
> ALTER VOLUME my_volume SET TAGS ('tag1' = 'val1', 'tag2' = 'val2', 'tag3' = 'val3');
  OK

-- Removes three tags from the volume named `my_volume`.
> ALTER VOLUME my_volume UNSET TAGS ('tag1', 'tag2', 'tag3');
  OK
```

## Related articles

* [COMMENT ON VOLUME](https://docs.databricks.com/gcp/en/sql/language-manual/sql-ref-syntax-ddl-comment.md)
* [CREATE VOLUME](https://docs.databricks.com/gcp/en/sql/language-manual/sql-ref-syntax-ddl-create-volume.md)
* [DESCRIBE VOLUME](https://docs.databricks.com/gcp/en/sql/language-manual/sql-ref-syntax-aux-describe-volume.md)
* [DROP VOLUME](https://docs.databricks.com/gcp/en/sql/language-manual/sql-ref-syntax-ddl-drop-volume.md)
* [SHOW VOLUMES](https://docs.databricks.com/gcp/en/sql/language-manual/sql-ref-syntax-aux-show-volumes.md)
