# ALTER BUCKET

The ALTER BUCKET statement can be used to modify an existing defined bucket.

_(since v3.0.5)_

The `ALTER BUCKET` statement can be used to modify an existing defined [bucket](/docs/reference/query-language/statements/define/bucket.md).

## Statement syntax

**SurrealQL Syntax**

```syntax title="SurrealQL Syntax"
ALTER BUCKET [ IF EXISTS ] @name
  [ READONLY | DROP READONLY ]
  [ BACKEND @string | DROP BACKEND ]
  [ PERMISSIONS @expression ]
  [ COMMENT @string | DROP COMMENT ]
```

## Example usage

```surql
DEFINE BUCKET my_bucket BACKEND "memory";

ALTER BUCKET my_bucket COMMENT "Should we make this read-only too??";
```
